Instance Propertyswift-nio 2.72.0_NIOFileSystem
capacity
The capacity of the buffer.
BufferedReader.swift:43- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
let capacity: Int
Other members in extension
Instance members
var count: Int
The number of bytes currently in the buffer.
func drop(Int
) async throws Reads and discards the given number of bytes.
func drop(while: (UInt8) -> Bool
) async throws Reads and discards bytes until
predicate
returnsfalse.
func read(ByteCount
) async throws -> ByteBuffer Read at most
count
bytes from the file; reads short if not enough bytes are available.func read(while: (UInt8) -> Bool
) async throws -> (bytes: ByteBuffer, readEOF: Bool) Reads from the current position in the file until
predicate
returnsfalse
and returns the read bytes.