示例#1
0
        internal UInt16 ReadUInt16WithOutTypeHead()
        {
            var val = BssomBinaryPrimitives.ReadUInt16LittleEndian(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.UInt16Size));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.UInt16Size, BssomSeekOrgin.Current);
            return(val);
        }
示例#2
0
        internal SByte ReadInt8()
        {
            EnsureTypeWithSkipBlankCharacter(BssomType.Int8Code);
            var val = BssomBinaryPrimitives.ReadInt8(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.Int8Size));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.Int8Size, BssomSeekOrgin.Current);
            return(val);
        }
示例#3
0
        internal Int64 ReadInt64()
        {
            EnsureTypeWithSkipBlankCharacter(BssomType.Int64Code);
            var val = BssomBinaryPrimitives.ReadInt64LittleEndian(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.Int64Size));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.Int64Size, BssomSeekOrgin.Current);
            return(val);
        }
示例#4
0
        internal Guid ReadGuid()
        {
            EnsureNativeTypeWithSkipBlankCharacter(NativeBssomType.GuidCode);
            var val = BssomBinaryPrimitives.ReadGuid(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.GuidSize));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.GuidSize, BssomSeekOrgin.Current);
            return(val);
        }
示例#5
0
        internal Char ReadChar()
        {
            EnsureNativeTypeWithSkipBlankCharacter(NativeBssomType.CharCode);
            var val = BssomBinaryPrimitives.ReadCharLittleEndian(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.CharSize));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.CharSize, BssomSeekOrgin.Current);
            return(val);
        }
示例#6
0
        internal Boolean ReadBoolean()
        {
            EnsureTypeWithSkipBlankCharacter(BssomType.BooleanCode);
            var val = BssomBinaryPrimitives.ReadBoolean(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.BooleanSize));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.BooleanSize, BssomSeekOrgin.Current);
            return(val);
        }
示例#7
0
        internal Single ReadFloat32()
        {
            EnsureTypeWithSkipBlankCharacter(BssomType.Float32Code);
            var val = BssomBinaryPrimitives.ReadFloat32LittleEndian(ref BssomBuffer.ReadRef(BssomBinaryPrimitives.Float32Size));

            BssomBuffer.SeekWithOutVerify(BssomBinaryPrimitives.Float32Size, BssomSeekOrgin.Current);
            return(val);
        }