示例#1
0
        public BinaryLog ReadLog()
        {
            var size = (byte)IOStream.ReadByte();
            var data = new byte[size];

            IOStream.Read(data, 0, size);
            return(BinaryLog.Deserialize(new MemoryStream(data), size));
        }
示例#2
0
        public BinaryLog ReadLog()
        {
            var sizeBytes = new byte[2];

            IOStream.Read(sizeBytes, 0, 2);
            var size = BitConverter.ToUInt16(sizeBytes, 0);
            var data = new byte[size];

            IOStream.Read(data, 0, size);
            return(BinaryLog.Deserialize(new MemoryStream(data), size));
        }