示例#1
0
        //// decode methods

        /// <summary>
        /// Decodes a boolean value from the buffer and advances the buffer's position.
        /// </summary>
        /// <param name="buffer">The buffer to read.</param>
        /// <returns>A boolean value.</returns>
        public static bool?DecodeBoolean(ByteBuffer buffer)
        {
            return(BooleanEncoding.Decode(buffer, 0));
        }
示例#2
0
 public override object DecodeObject(ByteBuffer buffer, FormatCode formatCode)
 {
     return(BooleanEncoding.Decode(buffer, formatCode));
 }