MemoryHelperReadStreamFully Method |
Reads a stream until the end is reached into a byte array. Based on
Jon Skeet's implementation.
It is up to the caller to dispose of the stream.
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static byte[] ReadStreamFully(
Stream stream,
int initialLength
)
Parameters
- stream Stream
- Stream to read all bytes from
- initialLength Int32
- Initial buffer length, default is 32K
Return Value
ByteThe byte array containing all the bytes from the stream
See Also