Lines Matching refs:byte_stream

54 #define byte_stream_copy_to_uint16_big_endian( byte_stream, value ) \  argument
55 ( value ) = ( byte_stream )[ 0 ]; \
57 ( value ) |= ( byte_stream )[ 1 ];
59 #define byte_stream_copy_to_uint16_little_endian( byte_stream, value ) \ argument
60 ( value ) = ( byte_stream )[ 1 ]; \
62 ( value ) |= ( byte_stream )[ 0 ];
64 #define byte_stream_copy_to_uint24_big_endian( byte_stream, value ) \ argument
65 ( value ) = ( byte_stream )[ 0 ]; \
67 ( value ) |= ( byte_stream )[ 1 ]; \
69 ( value ) |= ( byte_stream )[ 2 ];
71 #define byte_stream_copy_to_uint24_little_endian( byte_stream, value ) \ argument
72 ( value ) = ( byte_stream )[ 2 ]; \
74 ( value ) |= ( byte_stream )[ 1 ]; \
76 ( value ) |= ( byte_stream )[ 0 ];
78 #define byte_stream_copy_to_uint32_big_endian( byte_stream, value ) \ argument
79 ( value ) = ( byte_stream )[ 0 ]; \
81 ( value ) |= ( byte_stream )[ 1 ]; \
83 ( value ) |= ( byte_stream )[ 2 ]; \
85 ( value ) |= ( byte_stream )[ 3 ];
87 #define byte_stream_copy_to_uint32_little_endian( byte_stream, value ) \ argument
88 ( value ) = ( byte_stream )[ 3 ]; \
90 ( value ) |= ( byte_stream )[ 2 ]; \
92 ( value ) |= ( byte_stream )[ 1 ]; \
94 ( value ) |= ( byte_stream )[ 0 ];
96 #define byte_stream_copy_to_uint48_big_endian( byte_stream, value ) \ argument
97 ( value ) = ( byte_stream )[ 0 ]; \
99 ( value ) |= ( byte_stream )[ 1 ]; \
101 ( value ) |= ( byte_stream )[ 2 ]; \
103 ( value ) |= ( byte_stream )[ 3 ]; \
105 ( value ) |= ( byte_stream )[ 4 ]; \
107 ( value ) |= ( byte_stream )[ 5 ];
109 #define byte_stream_copy_to_uint48_little_endian( byte_stream, value ) \ argument
110 ( value ) |= ( byte_stream )[ 5 ]; \
112 ( value ) |= ( byte_stream )[ 4 ]; \
114 ( value ) |= ( byte_stream )[ 3 ]; \
116 ( value ) |= ( byte_stream )[ 2 ]; \
118 ( value ) |= ( byte_stream )[ 1 ]; \
120 ( value ) |= ( byte_stream )[ 0 ];
122 #define byte_stream_copy_to_uint64_big_endian( byte_stream, value ) \ argument
123 ( value ) = ( byte_stream )[ 0 ]; \
125 ( value ) |= ( byte_stream )[ 1 ]; \
127 ( value ) |= ( byte_stream )[ 2 ]; \
129 ( value ) |= ( byte_stream )[ 3 ]; \
131 ( value ) |= ( byte_stream )[ 4 ]; \
133 ( value ) |= ( byte_stream )[ 5 ]; \
135 ( value ) |= ( byte_stream )[ 6 ]; \
137 ( value ) |= ( byte_stream )[ 7 ];
139 #define byte_stream_copy_to_uint64_little_endian( byte_stream, value ) \ argument
140 ( value ) = ( byte_stream )[ 7 ]; \
142 ( value ) |= ( byte_stream )[ 6 ]; \
144 ( value ) |= ( byte_stream )[ 5 ]; \
146 ( value ) |= ( byte_stream )[ 4 ]; \
148 ( value ) |= ( byte_stream )[ 3 ]; \
150 ( value ) |= ( byte_stream )[ 2 ]; \
152 ( value ) |= ( byte_stream )[ 1 ]; \
154 ( value ) |= ( byte_stream )[ 0 ];
156 #define byte_stream_copy_from_uint16_big_endian( byte_stream, value ) \ argument
157 ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
158 ( byte_stream )[ 1 ] = (uint8_t) ( ( value ) & 0x0ff )
160 #define byte_stream_copy_from_uint16_little_endian( byte_stream, value ) \ argument
161 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
162 ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )
164 #define byte_stream_copy_from_uint24_big_endian( byte_stream, value ) \ argument
165 ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
166 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
167 ( byte_stream )[ 2 ] = (uint8_t) ( ( value ) & 0x0ff )
169 #define byte_stream_copy_from_uint24_little_endian( byte_stream, value ) \ argument
170 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
171 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
172 ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )
174 #define byte_stream_copy_from_uint32_big_endian( byte_stream, value ) \ argument
175 ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
176 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
177 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
178 ( byte_stream )[ 3 ] = (uint8_t) ( ( value ) & 0x0ff )
180 #define byte_stream_copy_from_uint32_little_endian( byte_stream, value ) \ argument
181 ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
182 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
183 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
184 ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )
186 #define byte_stream_copy_from_uint48_big_endian( byte_stream, value ) \ argument
187 ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
188 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
189 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
190 ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
191 ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
192 ( byte_stream )[ 5 ] = (uint8_t) ( ( value ) & 0x0ff )
194 #define byte_stream_copy_from_uint48_little_endian( byte_stream, value ) \ argument
195 ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
196 ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
197 ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
198 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
199 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
200 ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )
202 #define byte_stream_copy_from_uint64_big_endian( byte_stream, value ) \ argument
203 ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \
204 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \
205 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
206 ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
207 ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
208 ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
209 ( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
210 ( byte_stream )[ 7 ] = (uint8_t) ( ( value ) & 0x0ff )
212 #define byte_stream_copy_from_uint64_little_endian( byte_stream, value ) \ argument
213 ( byte_stream )[ 7 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \
214 ( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \
215 ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
216 ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
217 ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
218 ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
219 ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
220 ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )
222 #define byte_stream_bit_rotate_left_8bit( byte_stream, number_of_bits ) \ argument
223 ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 8 - ( number_of_bits ) ) ) )
225 #define byte_stream_bit_rotate_right_8bit( byte_stream, number_of_bits ) \ argument
226 ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 8 - ( number_of_bits ) ) ) )
228 #define byte_stream_bit_rotate_left_16bit( byte_stream, number_of_bits ) \ argument
229 ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 16 - ( number_of_bits ) ) ) )
231 #define byte_stream_bit_rotate_right_16bit( byte_stream, number_of_bits ) \ argument
232 ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 16 - ( number_of_bits ) ) ) )
234 #define byte_stream_bit_rotate_left_32bit( byte_stream, number_of_bits ) \ argument
235 ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 32 - ( number_of_bits ) ) ) )
237 #define byte_stream_bit_rotate_right_32bit( byte_stream, number_of_bits ) \ argument
238 ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 32 - ( number_of_bits ) ) ) )
240 #define byte_stream_bit_rotate_left_64bit( byte_stream, number_of_bits ) \ argument
241 ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 64 - ( number_of_bits ) ) ) )
243 #define byte_stream_bit_rotate_right_64bit( byte_stream, number_of_bits ) \ argument
244 ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 64 - ( number_of_bits ) ) ) )