SetBufferData Method
SetBufferData(ReadOnlyMemory<byte>, int, int, string)
Copy the buffer data into the _buffer beginning at the given offset. Throw an exception if the input length is not correct.
C#
protected void SetBufferData(ReadOnlyMemory<byte> bufferData, int expectedLength, int offset, string variableName)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | bufferData | |
int | expectedLength | |
int | offset | |
string | variableName |