示例#1
0
            public ushort GetUShort()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(ushort));
                }

                return((ushort)Biser.DecodeZigZag(dgt));
            }
示例#2
0
 public decimal GetDecimal()
 {
     int[] bits = new int[4];
     bits[0] = (int)Biser.DecodeZigZag(this.rootDecoder.GetDigit());
     bits[1] = (int)Biser.DecodeZigZag(this.rootDecoder.GetDigit());
     bits[2] = (int)Biser.DecodeZigZag(this.rootDecoder.GetDigit());
     bits[3] = (int)Biser.DecodeZigZag(this.rootDecoder.GetDigit());
     return(new decimal(bits));
 }
示例#3
0
            /// <summary>
            ///  Javascript Biser decoder
            /// </summary>
            /// <returns></returns>
            public long JSGetLong()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(long));
                }

                return(Biser.DecodeZigZag(dgt));
            }
示例#4
0
            public int GetInt()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(int));
                }

                return((int)Biser.DecodeZigZag(dgt));
            }
示例#5
0
            } //eof

            public DateTime GetDateTime()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(DateTime));
                }

                return(new DateTime(Biser.DecodeZigZag(dgt)));
            }
示例#6
0
            public decimal GetDecimal()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(decimal));
                }

                int[] bits = new int[4];
                bits[0] = (int)Biser.DecodeZigZag(dgt);
                this.GetDigit(out dgt);
                bits[1] = (int)Biser.DecodeZigZag(dgt);
                this.GetDigit(out dgt);
                bits[2] = (int)Biser.DecodeZigZag(dgt);
                this.GetDigit(out dgt);
                bits[3] = (int)Biser.DecodeZigZag(dgt);
                return(new decimal(bits));
            }
示例#7
0
 /// <summary>
 ///  Javascript Biser decoder
 /// </summary>
 /// <returns></returns>
 public long JSGetLong()
 {
     return(Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
示例#8
0
 public ushort GetUShort()
 {
     return((ushort)Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
示例#9
0
 public int GetInt()
 {
     return((int)Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
示例#10
0
            } //eof

            public DateTime GetDateTime()
            {
                return(new DateTime(Biser.DecodeZigZag(this.rootDecoder.GetDigit())));
            }
示例#11
0
 public short GetShort()
 {
     return((short)Biser.DecodeZigZag(this.GetDigit()));
 }
示例#12
0
 public long GetLong()
 {
     return(Biser.DecodeZigZag(this.GetDigit()));
 }