Lines Matching full:bytes

25     /* Number of bytes remaining */
37 * Returns the number of bytes remaining to be read in the PACKET
65 * Initialise a PACKET with |len| bytes held in |buf|. This does not make a
82 /* Initialize a PACKET to hold zero bytes. */
91 * bytes read from |ptr|. Returns 0 otherwise (lengths or contents not equal).
103 * Peek ahead and initialize |subpkt| with the next |len| bytes read from |pkt|.
117 * Initialize |subpkt| with the next |len| bytes read from |pkt|. Data is not
133 * Peek ahead at 2 bytes in network order from |pkt| and store the value in
149 /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
173 * Peek ahead at 3 bytes in network order from |pkt| and store the value in
190 /* Get 3 bytes in network order from |pkt| and store the value in |*data| */
214 * Peek ahead at 4 bytes in network order from |pkt| and store the value in
232 * Peek ahead at 8 bytes in network order from |pkt| and store the value in
254 /* Get 4 bytes in network order from |pkt| and store the value in |*data| */
277 /* Get 8 bytes in network order from |pkt| and store the value in |*data| */
324 * Peek ahead at 4 bytes in reverse network order from |pkt| and store the value
343 * Get 4 bytes in reverse network order from |pkt| and store the value in
357 * Peek ahead at |len| bytes from the |pkt| and store a pointer to them in
375 * Read |len| bytes from the |pkt| and store a pointer to them in |*data|. This
392 /* Peek ahead at |len| bytes from |pkt| and copy them to |data| */
406 * Read |len| bytes from |pkt| and copy them to |data|.
407 * The caller is responsible for ensuring that |data| can hold |len| bytes.
421 * Copy packet data to |dest|, and set |len| to the number of copied bytes.
422 * If the packet has more than |dest_len| bytes, nothing is copied.
423 * Returns 1 if the packet data fits in |dest_len| bytes, 0 otherwise.
441 * Copy |pkt| bytes to a newly allocated buffer and store a pointer to the
496 /* Move the current reading position forward |len| bytes */
534 * leftover bytes in |pkt|.
583 * leftover bytes in |pkt|.
643 /* Number of bytes in the packet_len or 0 if we don't write the length */
646 /* Number of bytes written to the buf prior to this packet starting */
667 /* Number of bytes written so far */
670 /* Maximum number of bytes we will allow to be written to this WPACKET */
786 * Same as WPACKET_start_sub_packet_len__() except no bytes are pre-allocated
792 * Allocate bytes in the WPACKET for the output. This reserves the bytes
794 * to the allocated bytes is stored in |*allocbytes|. |allocbytes| may be NULL.
795 * WARNING: the allocated bytes must be filled in immediately, without further
804 * started for the allocated bytes, and then closed immediately afterwards. The
805 * number of length bytes for the sub-packet is in |lenbytes|. Don't call this
815 #define WPACKET_sub_allocate_bytes_u8(pkt, len, bytes) \ argument
816 WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 1)
817 #define WPACKET_sub_allocate_bytes_u16(pkt, len, bytes) \ argument
818 WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 2)
819 #define WPACKET_sub_allocate_bytes_u24(pkt, len, bytes) \ argument
820 WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 3)
821 #define WPACKET_sub_allocate_bytes_u32(pkt, len, bytes) \ argument
822 WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 4)
825 * The same as WPACKET_allocate_bytes() except the reserved bytes are not
830 * functions are called (unless the write to the allocated bytes is abandoned).
853 #define WPACKET_sub_reserve_bytes_u8(pkt, len, bytes) \ argument
854 WPACKET_reserve_bytes__((pkt), (len), (bytes), 1)
855 #define WPACKET_sub_reserve_bytes_u16(pkt, len, bytes) \ argument
856 WPACKET_sub_reserve_bytes__((pkt), (len), (bytes), 2)
857 #define WPACKET_sub_reserve_bytes_u24(pkt, len, bytes) \ argument
858 WPACKET_sub_reserve_bytes__((pkt), (len), (bytes), 3)
859 #define WPACKET_sub_reserve_bytes_u32(pkt, len, bytes) \ argument
860 WPACKET_sub_reserve_bytes__((pkt), (len), (bytes), 4)
864 * |bytes| amount of storage. An error will occur if |val| cannot be
865 * accommodated in |bytes| storage, e.g. attempting to write the value 256 into
869 int WPACKET_put_bytes__(WPACKET *pkt, uint64_t val, size_t bytes);
889 /* Copy |len| bytes of data from |*src| into the WPACKET. */
892 /* Set |len| bytes of data to |ch| into the WPACKET. */
896 * Copy |len| bytes of data from |*src| into the WPACKET and prefix with its
914 * Return the total number of bytes written so far to the underlying buffer
915 * including any storage allocated for length bytes
920 * Returns the length of the current sub-packet. This excludes any bytes
927 * bytes.