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

                return((ushort)Biser.DecodeZigZag(dgt));
            }
Example #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));
 }
Example #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));
            }
Example #4
0
            public int GetInt()
            {
                if (!this.GetDigit(out var dgt))
                {
                    return(default(int));
                }

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

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

                return(new DateTime(Biser.DecodeZigZag(dgt)));
            }
Example #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));
            }
Example #7
0
 /// <summary>
 ///  Javascript Biser decoder
 /// </summary>
 /// <returns></returns>
 public long JSGetLong()
 {
     return(Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
Example #8
0
 public ushort GetUShort()
 {
     return((ushort)Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
Example #9
0
 public int GetInt()
 {
     return((int)Biser.DecodeZigZag(this.rootDecoder.GetDigit()));
 }
Example #10
0
            } //eof

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