Mirror::SimpleWeb::ReadHelper
Public Functions
Name | |
---|---|
int | Read(Stream stream, byte [] outBuffer, int outOffset, int length) Reads exactly length from stream |
bool | TryRead(Stream stream, byte [] outBuffer, int outOffset, int length) Reads and returns results. This should never throw an exception |
int | SafeReadTillMatch(Stream stream, byte [] outBuffer, int outOffset, int maxLength, byte [] endOfHeader) |
Public Functions Documentation
function Read
static inline int Read(
Stream stream,
byte [] outBuffer,
int outOffset,
int length
)
Reads exactly length from stream
Exceptions:
Return: outOffset + length
function TryRead
static inline bool TryRead(
Stream stream,
byte [] outBuffer,
int outOffset,
int length
)
Reads and returns results. This should never throw an exception
function SafeReadTillMatch
static inline int SafeReadTillMatch(
Stream stream,
byte [] outBuffer,
int outOffset,
int maxLength,
byte [] endOfHeader
)
Updated on 17 January 2021 at 14:41:11 UTC