ReadByte() public method

public ReadByte ( ) : byte
return byte
Beispiel #1
0
    public bool UnpackBool()
    {
        switch (reader.ReadByte())
        {
        case MsgPack.BoolFalseType:
            return(false);

        case MsgPack.BoolTrueType:
            return(true);

        default:
            throw new MessageTypeException();
        }
    }