SetBufferData Method
SetBufferData(ReadOnlyMemory<Byte>, Int32, Int32, 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 |
---|---|---|
System.ReadOnlyMemory<System.Byte> | bufferData | |
System.Int32 | expectedLength | |
System.Int32 | offset | |
System.String | variableName |