Method WritePartialValue
WritePartialValue<T>(T, int, int)
Write a partial value. The specified number of bytes is written from the value and the rest is ignored.
Declaration
public void WritePartialValue<T>(T value, int bytesToWrite, int offsetBytes = 0) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Value to write |
| int | bytesToWrite | Number of bytes |
| int | offsetBytes | Offset into the value to begin reading the bytes |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | |
| OverflowException |