78 #define WS_BC_VERSION_MAJOR 1 79 #define WS_BC_VERSION_MINOR 1 80 #define WS_BC_VERSION (((WS_BC_VERSION_MAJOR - 1) << 4) | WS_BC_VERSION_MINOR) 84 #define WS_BC_MAX_HEADER_LEN (WS_MB_UINT32_MAX_ENCODED_LEN + 1) 97 #define WS_BC_CONST_INT8 0 98 #define WS_BC_CONST_INT16 1 99 #define WS_BC_CONST_INT32 2 100 #define WS_BC_CONST_FLOAT32 3 101 #define WS_BC_CONST_UTF8_STRING 4 102 #define WS_BC_CONST_EMPTY_STRING 5 103 #define WS_BC_CONST_EXT_ENC_STRING 6 104 #define WS_BC_CONST_FIRST_RESERVED 7 134 #define WS_BC_PRAGMA_ACCESS_DOMAIN 0 135 #define WS_BC_PRAGMA_ACCESS_PATH 1 136 #define WS_BC_PRAGMA_USER_AGENT_PROPERTY 2 137 #define WS_BC_PRAGMA_USER_AGENT_PROPERTY_AND_SCHEME 3 138 #define WS_BC_PRAGMA_FIRST_RESERVED 4 232 size_t *data_len_return);
262 const unsigned char *data,
size_t len);
274 const unsigned char *domain,
281 const unsigned char *path,
288 const unsigned char *
name,
290 const unsigned char *property,
291 size_t property_len);
298 const unsigned char *
name,
300 const unsigned char *property,
302 const unsigned char *scheme,
322 unsigned char *
code);
WsBcStringEncoding string_encoding
WsBc * ws_bc_decode(const unsigned char *data, size_t data_len)
void ws_bc_free(WsBc *bc)
WsBool ws_bc_add_const_empty_string(WsBc *bc, WsUInt16 *index_return)
WsBool ws_bc_add_pragma_user_agent_property(WsBc *bc, const unsigned char *name, size_t name_len, const unsigned char *property, size_t property_len)
WsBool ws_bc_add_function(WsBc *bc, WsUInt8 *index_return, char *name, WsUInt8 num_arguments, WsUInt8 num_locals, WsUInt32 code_size, unsigned char *code)
WsBcFunctionName * function_names
WsBool ws_bc_add_const_utf8_string(WsBc *bc, WsUInt16 *index_return, const unsigned char *data, size_t len)
WsBool ws_bc_add_const_float(WsBc *bc, WsUInt16 *index_return, WsFloat value)
WsBool ws_bc_add_pragma_access_domain(WsBc *bc, const unsigned char *domain, size_t domain_len)
WsUInt8 num_function_names
void ws_bc_data_free(unsigned char *data)
WsBool ws_bc_add_pragma_user_agent_property_and_scheme(WsBc *bc, const unsigned char *name, size_t name_len, const unsigned char *property, size_t property_len, const unsigned char *scheme, size_t scheme_len)
union WsBcConstantRec::@116 u
WsBc * ws_bc_alloc(WsBcStringEncoding string_encoding)
WsBool ws_bc_encode(WsBc *bc, unsigned char **data_return, size_t *data_len_return)
WsBool ws_bc_add_pragma_access_path(WsBc *bc, const unsigned char *path, size_t path_len)
WsBool ws_bc_add_const_int(WsBc *bc, WsUInt16 *index_return, WsInt32 value)