public static long ReadInt64(this MemoryStream stream)
        {
            var res = BStruct.ToInt64(stream.GetBuffer(), (int)stream.Position);

            stream.Position += 8;
            return(res);
        }
Пример #2
0
        public long ReadInt64()
        {
            ReadTypeCode(RencodeTypeCode.Int64);

            var buffer = new byte[8];

            stream.Read(buffer, 0, buffer.Length);

            return(BStruct.ToInt64(buffer, 0));
        }