Lines Matching refs:length
51 SSLDecodeInt(const uint8_t *p, size_t length)
54 check(length > 0 && length <= 4); //anything else would be an internal error.
55 while (length--)
61 SSLEncodeInt(uint8_t *p, size_t value, size_t length)
63 unsigned char *retVal = p + length; /* Return pointer to char after int */
64 check(length > 0 && length <= 4); //anything else would be an internal error.
65 while (length--) /* Assemble backwards */
66 { p[length] = (uint8_t)value; /* Implicit masking to low byte */
73 SSLDecodeSize(const uint8_t *p, size_t length)
76 check(length > 0 && length <= 4); //anything else would be an internal error.
77 while (length--)
83 SSLEncodeSize(uint8_t *p, size_t value, size_t length)
85 unsigned char *retVal = p + length; /* Return pointer to char after int */
86 check(length > 0 && length <= 4); //anything else would be an internal error.
87 while (length--) /* Assemble backwards */
88 { p[length] = (uint8_t)value; /* Implicit masking to low byte */
110 SSLDecodeUInt64(const uint8_t *p, size_t length, uint64_t *v)
112 check(length > 0 && length <= 8);
113 if(length<=4) {
114 *v=SSLDecodeInt(p, length);
116 *v=((uint64_t)SSLDecodeInt(p, length-4))<<32 | SSLDecodeInt(p+length-4, 4);