Assimp.ExportDataBlob.FromStream C# (CSharp) Method

FromStream() public static method

Reads a data blob from the specified stream.
public static FromStream ( Stream stream ) : ExportDataBlob
stream Stream Input stream
return ExportDataBlob
        public static ExportDataBlob FromStream(Stream stream)
        {
            if(stream == null || !stream.CanRead)
                return null;

            //Reader set to leave the stream open
            using(BlobBinaryReader reader = new BlobBinaryReader(stream))
                return ReadBlob(reader);

        }