-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More byte_buf.h functions for HTTP/2 (#581)
Better way to read/write an integer with 3 bytes (HTTP/2 encodes length this way). - DELETE `aws_hton24()` and `aws_ntoh24()`. - These had bugs in the big-endian implementation, and it was hard to understand how to use them correctly. - ADD `aws_byte_cursor_read_be24()` reads 3 bytes into a u32. - ADD `aws_byte_buffer_write_be24()` writes "low" 3 bytes of u32. Better way to write padding zeroes. - ADD `aws_byte_buf_write_u8_n()` which is like memset() Semi-related, `ASSERT_BIN_ARRAYS_EQUALS()` prints index & value of 1st mismatched byte.
- Loading branch information
Showing
7 changed files
with
167 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.