src/http/v3/ngx_http_v3_encode.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Roman Arutyunyan
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_HTTP_V3_ENCODE_H_INCLUDED_
  6. #define _NGX_HTTP_V3_ENCODE_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>
  9. #include <ngx_http.h>


  10. uintptr_t ngx_http_v3_encode_varlen_int(u_char *p, uint64_t value);
  11. uintptr_t ngx_http_v3_encode_prefix_int(u_char *p, uint64_t value,
  12.     ngx_uint_t prefix);

  13. uintptr_t ngx_http_v3_encode_field_section_prefix(u_char *p,
  14.     ngx_uint_t insert_count, ngx_uint_t sign, ngx_uint_t delta_base);
  15. uintptr_t ngx_http_v3_encode_field_ri(u_char *p, ngx_uint_t dynamic,
  16.     ngx_uint_t index);
  17. uintptr_t ngx_http_v3_encode_field_lri(u_char *p, ngx_uint_t dynamic,
  18.     ngx_uint_t index, u_char *data, size_t len);
  19. uintptr_t ngx_http_v3_encode_field_l(u_char *p, ngx_str_t *name,
  20.     ngx_str_t *value);
  21. uintptr_t ngx_http_v3_encode_field_pbi(u_char *p, ngx_uint_t index);
  22. uintptr_t ngx_http_v3_encode_field_lpbi(u_char *p, ngx_uint_t index,
  23.     u_char *data, size_t len);


  24. #endif /* _NGX_HTTP_V3_ENCODE_H_INCLUDED_ */