Lines Matching defs:val
49 internal static int EncodeOneByte(uint val, BlobWriter bw)
51 if (val > 255) {
53 "Cannot encode '{0}' over one byte", val));
55 bw.Append((byte)val);
59 internal static int Encode7EUnsigned(uint val, BlobWriter bw)
62 for (uint w = val; w >= 0x80; w >>= 7) {
67 int x = (int)(val >> k) & 0x7F;
77 internal static int Encode7ESigned(int val, BlobWriter bw)
80 if (val < 0) {
81 for (int w = val; w < -0x40; w >>= 7) {
85 for (int w = val; w >= 0x40; w >>= 7) {
91 int x = (int)(val >> k) & 0x7F;