Method ReadPartialValue
ReadPartialValue<T>(out T, int, int)
Read a partial value. The value is zero-initialized and then the specified number of bytes is read into it.
Declaration
public void ReadPartialValue<T>(out T value, int bytesToRead, int offsetBytes = 0) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | value | Value to read |
int | bytesToRead | Number of bytes |
int | offsetBytes | Offset into the value to write the bytes |
Type Parameters
Name | Description |
---|---|
T | the type value to read the value into |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | |
OverflowException |