Summary

Write and read bytes to a stream. This aims to be as allocation free as possible while also being as fast as possible.

Properties

Length The total size of the data
Position The current read or write position. Values are clamped to valid range.
ReadRemaining
Writable Is this stream writable?

Methods

Compress
Decompress
Dispose
EnsureCanRead Validates read bounds with overflow protection
EnsureCanWrite Ensures buffer can accommodate write with overflow protection
Read Reads an unmanaged type
ReadArray Returns an array of unmanaged types
ReadObject
ToArray Get the data as an array of bytes
TryRead Try to read variable, return false if not enough data
Write
WriteArray

Static Methods

Create Create a writable byte stream
CreateReader
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.