fn findChunkedLen(r: *HeadersParser, bytes: []const u8) u32
[src]
Returns the number of bytes consumed by the chunk size. This is always less than or equal to bytes.len
. You should check r.state == .chunk_data
after this to check if the chunk size has been fully parsed.
If the amount returned is less than bytes.len
, you may assume that the parser is in the chunk_data
state and that the first byte of the chunk is at bytes[result]
.