Home | History | Annotate | Download | only in decode_unittests

Lines Matching defs:bytes

33         if (byte != ref->bytes[i])
171 struct { size_t size; uint8_t bytes[5]; } d;
176 TEST((s = S("\x01\xFF"), pb_dec_bytes(&s, &f, &d) && d.size == 1 && d.bytes[0] == 0xFF))
180 /* Note: the size limit on bytes-fields is not strictly obeyed, as
185 * 6 bytes should error out.
252 struct { size_t size; uint8_t bytes[10]; } ref;
258 ref.size = 1; ref.bytes[0] = 0x55;
261 ref.size = 3; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = 0x55;
264 ref.size = 1; ref.bytes[0] = 0x55;
267 ref.size = 4; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = ref.bytes[3] = 0xAA;
270 ref.size = 8; memset(ref.bytes, 0xAA, 8);
276 ref.size = 1; ref.bytes[0] = 0x56;