System::IO::MemoryStream::TryGetBuffer method

MemoryStream::TryGetBuffer method

Returns the array of unsigned bytes from which this stream was created.

bool System::IO::MemoryStream::TryGetBuffer(ArraySegment<uint8_t> &buffer)
ParameterTypeDescription
bufferArraySegment<uint8_t>&byte array - out paramter. When this method returns true, the byte array segment from which this stream was created; when this method returns false, this parameter is set to default.

ReturnValue

True if the conversion succeeded.

See Also