Method GetBuffer
GetBuffer()
Returns the array of unsigned bytes from which this stream was created.
public override byte[] GetBuffer()
Returns
- byte[]
The byte array from which this stream was created, or the underlying array if a byte array was not provided to the MemoryStream constructor during construction of the current instance.
Exceptions
- UnauthorizedAccessException
The
MemoryStream
instance was not created with a publicly visible buffer.