XLibrary.XNodeIn.ReadNextPacket C# (CSharp) Method

ReadNextPacket() public static method

public static ReadNextPacket ( FileStream stream, int &totalSize ) : XPacketType
stream System.IO.FileStream
totalSize int
return XPacketType
        public static XPacketType ReadNextPacket(FileStream stream, out int totalSize)
        {
            totalSize = BitConverter.ToInt32(stream.Read(4), 0);

            return (XPacketType) stream.ReadByte();
        }