Lines Matching refs:pSrc
33 INLINE u1 get1(unsigned const char* pSrc) in get1() argument
35 return *pSrc; in get1()
41 INLINE u2 get2BE(unsigned char const* pSrc) in get2BE() argument
43 return (pSrc[0] << 8) | pSrc[1]; in get2BE()
49 INLINE u4 get4BE(unsigned char const* pSrc) in get4BE() argument
51 return (pSrc[0] << 24) | (pSrc[1] << 16) | (pSrc[2] << 8) | pSrc[3]; in get4BE()
57 INLINE u8 get8BE(unsigned char const* pSrc) in get8BE() argument
61 high = pSrc[0]; in get8BE()
62 high = (high << 8) | pSrc[1]; in get8BE()
63 high = (high << 8) | pSrc[2]; in get8BE()
64 high = (high << 8) | pSrc[3]; in get8BE()
65 low = pSrc[4]; in get8BE()
66 low = (low << 8) | pSrc[5]; in get8BE()
67 low = (low << 8) | pSrc[6]; in get8BE()
68 low = (low << 8) | pSrc[7]; in get8BE()
76 INLINE u2 get2LE(unsigned char const* pSrc) in get2LE() argument
78 return pSrc[0] | (pSrc[1] << 8); in get2LE()
84 INLINE u4 get4LE(unsigned char const* pSrc) in get4LE() argument
88 result = pSrc[0]; in get4LE()
89 result |= pSrc[1] << 8; in get4LE()
90 result |= pSrc[2] << 16; in get4LE()
91 result |= pSrc[3] << 24; in get4LE()
99 INLINE u8 get8LE(unsigned char const* pSrc) in get8LE() argument
103 low = pSrc[0]; in get8LE()
104 low |= pSrc[1] << 8; in get8LE()
105 low |= pSrc[2] << 16; in get8LE()
106 low |= pSrc[3] << 24; in get8LE()
107 high = pSrc[4]; in get8LE()
108 high |= pSrc[5] << 8; in get8LE()
109 high |= pSrc[6] << 16; in get8LE()
110 high |= pSrc[7] << 24; in get8LE()
127 const unsigned char* pSrc = *ppSrc; in read2BE() local
129 *ppSrc = pSrc + 2; in read2BE()
130 return pSrc[0] << 8 | pSrc[1]; in read2BE()
138 const unsigned char* pSrc = *ppSrc; in read4BE() local
141 result = pSrc[0] << 24; in read4BE()
142 result |= pSrc[1] << 16; in read4BE()
143 result |= pSrc[2] << 8; in read4BE()
144 result |= pSrc[3]; in read4BE()
146 *ppSrc = pSrc + 4; in read4BE()
155 const unsigned char* pSrc = *ppSrc; in read8BE() local
158 high = pSrc[0]; in read8BE()
159 high = (high << 8) | pSrc[1]; in read8BE()
160 high = (high << 8) | pSrc[2]; in read8BE()
161 high = (high << 8) | pSrc[3]; in read8BE()
162 low = pSrc[4]; in read8BE()
163 low = (low << 8) | pSrc[5]; in read8BE()
164 low = (low << 8) | pSrc[6]; in read8BE()
165 low = (low << 8) | pSrc[7]; in read8BE()
167 *ppSrc = pSrc + 8; in read8BE()
176 const unsigned char* pSrc = *ppSrc; in read2LE() local
177 *ppSrc = pSrc + 2; in read2LE()
178 return pSrc[0] | pSrc[1] << 8; in read2LE()
186 const unsigned char* pSrc = *ppSrc; in read4LE() local
189 result = pSrc[0]; in read4LE()
190 result |= pSrc[1] << 8; in read4LE()
191 result |= pSrc[2] << 16; in read4LE()
192 result |= pSrc[3] << 24; in read4LE()
194 *ppSrc = pSrc + 4; in read4LE()
203 const unsigned char* pSrc = *ppSrc; in read8LE() local
206 low = pSrc[0]; in read8LE()
207 low |= pSrc[1] << 8; in read8LE()
208 low |= pSrc[2] << 16; in read8LE()
209 low |= pSrc[3] << 24; in read8LE()
210 high = pSrc[4]; in read8LE()
211 high |= pSrc[5] << 8; in read8LE()
212 high |= pSrc[6] << 16; in read8LE()
213 high |= pSrc[7] << 24; in read8LE()
215 *ppSrc = pSrc + 8; in read8LE()