TryGetBuffer()

MemoryStream::TryGetBuffer(ArraySegment<uint8_t>&) method

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

bool System::IO::MemoryStream::TryGetBuffer(ArraySegment<uint8_t> &buffer)

Arguments

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.

Return Value

True if the conversion succeeded.

See Also