You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/NIOCore/ByteBuffer-aux.swift
+2-1
Original file line number
Diff line number
Diff line change
@@ -480,7 +480,8 @@ extension ByteBuffer {
480
480
/// - returns: A `ByteBuffer` sharing storage containing the readable bytes only.
481
481
@inlinable
482
482
publicfunc slice()->ByteBuffer{
483
-
self.getSlice(at:self.readerIndex, length:self.readableBytes)! // must work, bytes definitely in the buffer// must work, bytes definitely in the buffer
483
+
// must work, bytes definitely in the buffer// must work, bytes definitely in the buffer
@@ -251,8 +256,10 @@ class BaseSocketChannel<SocketType: BaseSocketProtocol>: SelectableChannel, Chan
251
256
privatevarinFlushNow:Bool=false // Guard against re-entrance of flushNow() method.
252
257
privatevarautoRead:Bool=true
253
258
254
-
// MARK: Variables that are really constants
255
-
privatevar_pipeline:ChannelPipeline!=nil // this is really a constant (set in .init) but needs `self` to be constructed and therefore a `var`. Do not change as this needs to accessed from arbitrary threads
259
+
// MARK: Variables that are really constant
260
+
// this is really a constant (set in .init) but needs `self` to be constructed and
261
+
// therefore a `var`. Do not change as this needs to accessed from arbitrary threads
262
+
privatevar_pipeline:ChannelPipeline!=nil
256
263
257
264
// MARK: Special variables, please read comments.
258
265
// For reads guarded by _either_ `self._offEventLoopLock` or the EL thread
0 commit comments