Instance Propertyswift-nio 2.72.0NIOCore
readerIndex
The current reader index of this FileRegion
var readerIndex: Int { get set }
Other members in extension
Type members
init(fileHandle: NIOFileHandle
) throws Create a new
FileRegion
forming a complete file.init(fileHandle: NIOFileHandle, readerIndex: Int, endIndex: Int
) Create a new
FileRegion
from an openNIOFileHandle
.static func == (lhs: FileRegion, rhs: FileRegion
) -> Bool
Instance members
var description: String
var endIndex: Int
The end index of this
FileRegion
.let fileHandle: NIOFileHandle
The
NIOFileHandle
that is used by thisFileRegion
.var readableBytes: Int
The number of readable bytes within this FileRegion (taking the
readerIndex
andendIndex
into account).func moveReaderIndex(forwardBy: Int
) Move the readerIndex forward by
offset
.