B | |
base64decode_string, string_t | |
base64encode_string, string_t | |
Base64EncodeString | |
Base64EncodeString impl | |
base64encoding | |
Base64Encoding | |
betoh_int | |
big, decimal_frombigint_state_t | |
bigint_divstate_t | |
bigint_fixed_DECLARE, bigint_fixed_t | |
bigint_fixed_INIT, bigint_fixed_t | |
bigint_fixed_t | |
BIGINT_MAXSIZE | |
bigint_t | |
BigInteger | |
BigInteger impl | |
binary operations | |
BinaryStack | |
BinaryStack impl | |
binarystack_FREE, binarystack_t | |
binarystack_t | |
bit-operations, int_t | |
bit_offset, patriciatrie_node_t | |
bitsof | |
bitsperdigit_bigint | |
bitsperint_decimal | |
block, sha1_hash_t | |
BlockArray | |
BlockArray impl | |
blockarray_FREE, blockarray_t | |
blockarray_IMPLEMENT | |
blockarray_t | |
blockheader_t | |
Blocking OS Call | |
blocklist, pagecache_impl_t | |
blockmap_maincontext | |
blocksize, binarystack_t | |
blocksize_blockheader, blockheader_t | |
blockstart, binarystack_t | |
blockstart_blockheader, blockheader_t | |
branch_arraysfunode | |
branch_arraystfunode | |
branchcast_arraysfunode, arraysf_mwaybranch_t | |
branchcast_arraystfunode | |
buddy, testelem_t | |
buffer I/ | |
buffer management, ipsocket_t | |
build | |
Build | |
Build a Suffix Tree | |
build_suffixtree, suffixtree_t | |
build_test_node | |
build_test_tree | |
buttons | |
byte-operations, int_t | |
bytestoread_ipsocket, ipsocket_t | |
bytestowrite_ipsocket, ipsocket_t |
Decodes string str from Base64 into a binary octet stream.
int base64decode_string( const struct string_t * str, /*ret*/struct wbuffer_t * result )
Encodes string str in Base64 format.
int base64encode_string( const struct string_t * str, /*ret*/struct wbuffer_t * result )
Converts big_endian_val from big-endian byte order to host byte order.
unsigned betoh_int( unsigned big_endian_val )
A preallocated bigint_t.
bigint_t * big
Used in divmod_biginthelper to store current state of division computation.
struct bigint_divstate_t
Declares type bigint_fixedNR_t.
#define bigint_fixed_DECLARE( nrdigits ) struct CONCAT(CONCAT(bigint_fixed, nrdigits),_t){ uint16_t allocated_digits ; int16_t sign_and_used_digits ; uint16_t exponent ; uint32_t digits[nrdigits] ; }
Initializes a static object of type bigint_fixed_t.
#define bigint_fixed_INIT( nrdigits, exponent, ... ) { 0, nrdigits, exponent, { __VA_ARGS__ } }
Same as bigint_t with a fixed size.
struct bigint_fixed_t
The number of digits of bigint_t which may be converted to decimal_t without overflow.
#define BIGINT_MAXSIZE ( (uint32_t)119 )
Big integer object type.
struct bigint_t
Static initializer.
#define binarystack_FREE { 0, 0, 0 }
Stores binary data in LIFO order.
struct binarystack_t
The bit offset of the bit to test.
size_t bit_offset
Calculates memory size of a type in number of bits.
#define bitsof( type_t ) (8*sizeof(type_t))
Implements bigint_t.bitsperdigit_bigint.
#define bitsperdigit_bigint( ) ((uint8_t)bitsof(((bigint_t*)0)->digits[0]))
Returns the number of bits used to represent one digit.
uint8_t bitsperdigit_bigint( void )
Implements decimal_t.bitsperint_decimal.
#define bitsperint_decimal( ) ((uint8_t)(bitsof(((decimal_t*)0)->digits[0])))
Returns the size in bytes of the internally used integer type.
uint8_t bitsperint_decimal( void )
Collects data until size is 64 bytes.
uint8_t block[64]
Static initializer.
#define blockarray_FREE { 0, 0, 0, 0, 0, 0, 0 }
Implements blockarray_t.blockarray_IMPLEMENT.
#define blockarray_IMPLEMENT( _fsuffix, object_t ) static inline int init##_fsuffix(/*out*/blockarray_t * barray, pagesize_e pagesize) __attribute__ ((always_inline)) ; static inline int free##_fsuffix(blockarray_t * barray) __attribute__ ((always_inline)) ; static inline object_t * at##_fsuffix(blockarray_t * barray, size_t arrayindex) __attribute__ ((always_inline)) ; static inline int assign##_fsuffix(blockarray_t * barray, size_t arrayindex, /*out*/object_t ** elemaddr) __attribute__ ((always_inline)) ; static inline int init##_fsuffix(/*out*/blockarray_t * barray, pagesize_e pagesize) { return init_blockarray(barray, pagesize, sizeof(object_t)) ; } static inline int free##_fsuffix(blockarray_t * barray) { return free_blockarray(barray) ; } static inline object_t * at##_fsuffix(blockarray_t * barray, size_t arrayindex) { return (object_t*)at_blockarray(barray, arrayindex) ; } static inline int assign##_fsuffix(blockarray_t * barray, size_t arrayindex, /*out*/object_t ** elemaddr) { return assign_blockarray(barray, arrayindex, (void**)elemaddr) ; }
Generates interface of blockarray storing elements of type object_t.
void blockarray_IMPLEMENT( IDNAME _fsuffix, TYPENAME object_t ) ;
Stores elements and retrieves them by index of type integer.
struct blockarray_t
Header information of every allocated block.
struct blockheader_t
A list of pagecache_block_t.
struct { struct dlist_node_t * last ; } blocklist
Implementation of maincontext_t.blockmap_maincontext.
#define blockmap_maincontext( ) (pcontext_maincontext()->blockmap)
Returns shared blockmap used by pagecache_impl_t (see <pagecache_blockmap_t >).
struct pagecache_blockmap_t * blockmap_maincontext( void )
Size in bytes of allocated memory block blockstart points to.
uint32_t blocksize
Returns the size of the allocated block usable pushing objects.
static inline uint32_t blocksize_blockheader( blockheader_t * header )
Start address of latest allocated memory block.
uint8_t * blockstart
Returns the start address where pushed objects are stored.
static inline uint8_t * blockstart_blockheader( blockheader_t * header )
Implements arraysf_unode_t.branch_arraysfunode.
#define branch_arraysfunode( node ) ( __extension__ ({ arraysf_unode_t * _node1 = (node) ; (arraysf_mwaybranch_t*)(0x01 ^ (uintptr_t)(_node1)) ; }))
Gets pointer to value arraysf_mwaybranch_t.
arraysf_mwaybranch_t * branch_arraysfunode( arraysf_unode_t * node )
Implements arraystf_unode_t.branch_arraystfunode.
#define branch_arraystfunode( node ) ( __extension__ ({ arraystf_unode_t * _node1 = (node) ; (arraystf_mwaybranch_t*) (0x01 ^ (uintptr_t)(_node1)); }))
Gets pointer to value arraystf_mwaybranch_t.
arraystf_mwaybranch_t * branch_arraystfunode( arraystf_unode_t * node )
Casts pointer to arraysf_mwaybranch_t into pointer to arraysf_unode_t.
static inline arraysf_unode_t * branchcast_arraysfunode( arraysf_mwaybranch_t * branch )
Implements arraystf_unode_t.branchcast_arraystfunode.
static inline arraystf_unode_t * branchcast_arraystfunode( arraystf_mwaybranch_t * branch )
Casts pointer to arraystf_mwaybranch_t into pointer to arraystf_unode_t.
static inline arraystf_unode_t * branchcast_arraystfunode( arraystf_mwaybranch_t * branch )
Points to buddy node.
testelem_t * buddy
This function constructs a suffix tree from the given input string.
int build_suffixtree( suffixtree_t * tree, size_t length, const uint8_t input_string[length] )
Allocates a tree with pow(2, depth+1)-1 nodes.
static int build_test_node( void ** block, pagesize_e pgsize, uint8_t depth )
Calls build_test_node to build the test tree.
static int build_test_tree( blockarray_t * barray, pagesize_e pgsize, uint8_t depth )
Returns the number of bytes in the receive queue.
int bytestoread_ipsocket( const ipsocket_t * ipsock, /*out*/size_t * unread_bytes )
Returns the number of bytes in the send queue.
int bytestowrite_ipsocket( const ipsocket_t * ipsock, /*out*/size_t * unsend_bytes )