Home | History | Annotate | Download | only in nanopb-c

Lines Matching defs:bytes

176              * for pointer-type string and bytes fields, the array entries are
428 const uint8_t *bytes = value;
430 lebytes[0] = bytes[3];
431 lebytes[1] = bytes[2];
432 lebytes[2] = bytes[1];
433 lebytes[3] = bytes[0];
443 const uint8_t *bytes = value;
445 lebytes[0] = bytes[7];
446 lebytes[1] = bytes[6];
447 lebytes[2] = bytes[5];
448 lebytes[3] = bytes[4];
449 lebytes[4] = bytes[3];
450 lebytes[5] = bytes[2];
451 lebytes[6] = bytes[1];
452 lebytes[7] = bytes[0];
617 const pb_bytes_array_t *bytes = (const pb_bytes_array_t*)src;
621 /* Threat null pointer as an empty bytes field */
626 PB_BYTES_ARRAY_T_ALLOCSIZE(bytes->size) > field->data_size)
628 PB_RETURN_ERROR(stream, "bytes size exceeded");
631 return pb_encode_string(stream, bytes->bytes, bytes->size);