コード例 #1
0
        private static   UInt29 U29_4ReadFrom(IDataReader reader, UInt29 val)
        {
            var readByte = reader.ReadByte();

          return (val << 8) | readByte;
        }
コード例 #2
0
        private static  Tuple<bool, UInt29> U29_3ReadFrom(IDataReader reader,  UInt29 val)
        {
            var readByte = reader.ReadByte();

            val = (val << 7) | (readByte & 0x7Fu);

            return Tuple.Create(readByte <= 0x7Fu, val);
        }
コード例 #3
0
 private void readRemainIndexOrLength()
 {
     this.remainIndexOrLength_ = readUInt29();
 }
コード例 #4
0
 private void resetRemainIndex()
 {
     this.remainIndexOrLength_ = 0x01;
 }
コード例 #5
0
 internal static InvalidOperationException CreateInvalidLengthValueException(UInt29 value)
 {
     return new InvalidOperationException(string.Format(Languages.Language.CreateInvalidLengthValueExceptionMessageFormat, value));
 }
コード例 #6
0
 internal static InvalidOperationException CreateInvalidRemainingValueException(UInt29 value)
 {
     return new InvalidOperationException(string.Format(Languages.Language.InvalidRemainingValueErrorMessageFormat, value));
 }