FixedSizeRecvByteBufferAllocator
public struct FixedSizeRecvByteBufferAllocator : RecvByteBufferAllocator
RecvByteBufferAllocator
which will always return a ByteBuffer
with the same fixed size no matter what was recorded.
-
Undocumented
Declaration
Swift
public let capacity: Int
-
Undocumented
Declaration
Swift
public init(capacity: Int)
-
Declaration
Swift
public mutating func record(actualReadBytes: Int) -> Bool
-
Declaration
Swift
public func buffer(allocator: ByteBufferAllocator) -> ByteBuffer