Click or drag to resize

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.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public 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

Byte
The byte array containing all the bytes from the stream
See Also