/dports/multimedia/ccextractor/ccextractor-0.85/src/lib_ccx/ |
H A D | cc_bitstream.c | 19 bstr->bitsleft = (bstr->end - bstr->pos)*8; in init_bitstream() 46 if(bstr->end - bstr->pos < 0) in next_bits() 57 bstr->bitsleft = 0LL + (bstr->end - bstr->pos - 1)*8 + bstr->bpos - bnum; in next_bits() 119 bstr->bpos = bstr->_i_bpos; in read_bits() 120 bstr->pos = bstr->_i_pos; in read_bits() 132 if(bstr->end - bstr->pos < 0) in skip_bits() 143 bstr->bitsleft = 0LL + (bstr->end - bstr->pos - 1)*8 + bstr->bpos - bnum; in skip_bits() 169 if(bstr->end - bstr->pos < 0) in is_byte_aligned() 214 bstr->bitsleft = 0LL + 8*(bstr->end-bstr->pos-1)+bstr->bpos; in make_byte_aligned() 238 bstr->bitsleft = 0LL + (bstr->end - bstr->pos - 1)*8 + bstr->bpos - bynum*8; in next_bytes() [all …]
|
/dports/multimedia/mpv/mpv-0.34.1/misc/ |
H A D | bstr.h | 36 } bstr; typedef 64 int bstrcmp(struct bstr str1, struct bstr str2); 72 struct bstr bstr_lstrip(struct bstr str); 73 struct bstr bstr_strip(struct bstr str); 74 struct bstr bstr_split(struct bstr str, const char *sep, struct bstr *rest); 75 bool bstr_split_tok(bstr str, const char *tok, bstr *out_left, bstr *out_right); 97 struct bstr bstr_split_utf8(struct bstr str, struct bstr *out_next); 124 struct bstr bstr_splitchar(struct bstr str, struct bstr *rest, const char c); 127 static inline struct bstr bstr_getline(struct bstr str, struct bstr *rest) in bstr_getline() 150 struct bstr bstr_get_ext(struct bstr s); [all …]
|
H A D | bstr.c | 31 int bstrcmp(struct bstr str1, struct bstr str2) in bstrcmp() 48 int bstrcasecmp(struct bstr str1, struct bstr str2) in bstrcasecmp() 107 struct bstr bstr_lstrip(struct bstr str) in bstr_lstrip() 116 struct bstr bstr_strip(struct bstr str) in bstr_strip() 124 struct bstr bstr_split(struct bstr str, const char *sep, struct bstr *rest) in bstr_split() 141 bool bstr_split_tok(bstr str, const char *tok, bstr *out_left, bstr *out_right) in bstr_split_tok() 180 double bstrtod(struct bstr str, struct bstr *rest) in bstrtod() 194 struct bstr bstr_splitchar(struct bstr str, struct bstr *rest, const char c) in bstr_splitchar() 287 struct bstr bstr_split_utf8(struct bstr str, struct bstr *out_next) in bstr_split_utf8() 418 struct bstr bstr_strip_ext(struct bstr str) in bstr_strip_ext() [all …]
|
/dports/security/suricata/suricata-6.0.4/libhtp/htp/ |
H A D | bstr.h | 95 bstr *bstr_add(bstr *bdestination, const bstr *bsource); 107 bstr *bstr_add_c(bstr *b, const char *cstr); 118 bstr *bstr_add_c_noex(bstr *b, const char *cstr); 131 bstr *bstr_add_mem(bstr *b, const void *data, size_t len); 154 bstr *bstr_add_noex(bstr *bdestination, const bstr *bsource); 295 int bstr_cmp(const bstr *b1, const bstr *b2); 353 int bstr_cmp_nocase(const bstr *b1, const bstr *b2); 371 bstr *bstr_dup(const bstr *b); 397 bstr *bstr_dup_lower(const bstr *b); 419 bstr *bstr_expand(bstr *b, size_t newsize); [all …]
|
H A D | htp.h | 173 bstr *name; 176 bstr *value; 187 bstr *name; 190 bstr *value; 577 bstr *scheme; 580 bstr *username; 583 bstr *password; 586 bstr *hostname; 589 bstr *port; 599 bstr *path; [all …]
|
H A D | bstr.c | 44 bstr *b = malloc(sizeof (bstr) + len); in bstr_alloc() 54 bstr *bstr_add(bstr *destination, const bstr *source) { in bstr_add() 74 bstr *b = (bstr *) destination; in bstr_add_mem() 91 bstr *b = (bstr *) destination; in bstr_add_mem_noex() 98 bstr *bstr_add_noex(bstr *destination, const bstr *source) { in bstr_add_noex() 210 int bstr_cmp(const bstr *b1, const bstr *b2) { in bstr_cmp() 238 bstr *bstr_dup(const bstr *b) { in bstr_dup() 254 bstr *bstr_dup_lower(const bstr *b) { in bstr_dup_lower() 266 bstr *bstr_expand(bstr *b, size_t newsize) { in bstr_expand() 334 bstr *bstr_to_lowercase(bstr *b) { in bstr_to_lowercase() [all …]
|
/dports/devel/libhtp/libhtp-0.5.33/htp/ |
H A D | bstr.h | 95 bstr *bstr_add(bstr *bdestination, const bstr *bsource); 107 bstr *bstr_add_c(bstr *b, const char *cstr); 118 bstr *bstr_add_c_noex(bstr *b, const char *cstr); 131 bstr *bstr_add_mem(bstr *b, const void *data, size_t len); 154 bstr *bstr_add_noex(bstr *bdestination, const bstr *bsource); 295 int bstr_cmp(const bstr *b1, const bstr *b2); 353 int bstr_cmp_nocase(const bstr *b1, const bstr *b2); 371 bstr *bstr_dup(const bstr *b); 397 bstr *bstr_dup_lower(const bstr *b); 419 bstr *bstr_expand(bstr *b, size_t newsize); [all …]
|
H A D | htp.h | 173 bstr *name; 176 bstr *value; 187 bstr *name; 190 bstr *value; 577 bstr *scheme; 580 bstr *username; 583 bstr *password; 586 bstr *hostname; 589 bstr *port; 599 bstr *path; [all …]
|
H A D | bstr.c | 44 bstr *b = malloc(sizeof (bstr) + len); in bstr_alloc() 54 bstr *bstr_add(bstr *destination, const bstr *source) { in bstr_add() 74 bstr *b = (bstr *) destination; in bstr_add_mem() 91 bstr *b = (bstr *) destination; in bstr_add_mem_noex() 98 bstr *bstr_add_noex(bstr *destination, const bstr *source) { in bstr_add_noex() 210 int bstr_cmp(const bstr *b1, const bstr *b2) { in bstr_cmp() 238 bstr *bstr_dup(const bstr *b) { in bstr_dup() 254 bstr *bstr_dup_lower(const bstr *b) { in bstr_dup_lower() 266 bstr *bstr_expand(bstr *b, size_t newsize) { in bstr_expand() 334 bstr *bstr_to_lowercase(bstr *b) { in bstr_to_lowercase() [all …]
|
/dports/graphics/p5-Image-ExifTool/Image-ExifTool-12.30/lib/Image/ExifTool/ |
H A D | H264.pm | 601 my $bstr = shift; 604 $$bstr{Word} = unpack("x$pos N", ${$$bstr{DataPt}}); 616 $$bstr{Pos} = $$bstr{Len}; 630 my $bstr = { 636 ReadNextWord($bstr) or undef $bstr; 637 return $bstr; 646 my $bstr = shift; 653 return $bits + 8 * ($$bstr{Len} - $$bstr{Pos}); 666 ++$val if $$bstr{Mask} & $$bstr{Word}; 679 my $bstr = shift; [all …]
|
/dports/graphics/p5-Image-ExifTool-devel/Image-ExifTool-12.14/lib/Image/ExifTool/ |
H A D | H264.pm | 586 my $bstr = shift; 589 $$bstr{Word} = unpack("x$pos N", ${$$bstr{DataPt}}); 601 $$bstr{Pos} = $$bstr{Len}; 615 my $bstr = { 621 ReadNextWord($bstr) or undef $bstr; 622 return $bstr; 631 my $bstr = shift; 638 return $bits + 8 * ($$bstr{Len} - $$bstr{Pos}); 651 ++$val if $$bstr{Mask} & $$bstr{Word}; 664 my $bstr = shift; [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/regexp/match/ |
H A D | port.rkt | 38 (bytes-copy! dest-bstr 0 bstr pos+skip (+ pos+skip len)) 58 (define bstr-pos+skip (+ bstr-pos skip)) 59 (when (bstr-pos+skip . >= . bstr-end) 63 [(bstr-pos+skip . >= . bstr-end) eof] 66 (- bstr-end bstr-pos+skip))) 67 (bytes-copy! dest-bstr 0 bstr bstr-pos+skip (+ bstr-pos+skip len)) 81 (when ((- (bytes-length bstr) bstr-end) . < . new-len) 84 (bytes-copy! bstr2 0 bstr 0 bstr-end) 86 (bytes-copy! bstr bstr-end new-bstr) 87 (set! bstr-end (+ bstr-end new-len)) [all …]
|
/dports/lang/racket/racket-8.3/src/regexp/match/ |
H A D | port.rkt | 38 (bytes-copy! dest-bstr 0 bstr pos+skip (+ pos+skip len)) 58 (define bstr-pos+skip (+ bstr-pos skip)) 59 (when (bstr-pos+skip . >= . bstr-end) 63 [(bstr-pos+skip . >= . bstr-end) eof] 66 (- bstr-end bstr-pos+skip))) 67 (bytes-copy! dest-bstr 0 bstr bstr-pos+skip (+ bstr-pos+skip len)) 81 (when ((- (bytes-length bstr) bstr-end) . < . new-len) 84 (bytes-copy! bstr2 0 bstr 0 bstr-end) 86 (bytes-copy! bstr bstr-end new-bstr) 87 (set! bstr-end (+ bstr-end new-len)) [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/io/path/ |
H A D | cleanse.rkt | 22 (define (return bstr) 43 (define new-bstr (clean-double-slashes bstr 'windows literal-start 50 [(= literal-start (bytes-length new-bstr)) (return new-bstr)] 59 [(letter-drive-start? bstr (bytes-length bstr)) 96 bstr] 98 (define new-bstr (make-bytes (- (bytes-length bstr) extra-count))) 109 (bytes-set! new-bstr j (bytes-ref bstr i))) 112 (bytes-set! new-bstr j (bytes-ref bstr i)) 116 (bytes-copy! new-bstr 0 bstr 0 to-backslash-from) 123 (bytes-copy! new-bstr 0 bstr 0 (add1 allow-double-before))]) [all …]
|
/dports/lang/racket/racket-8.3/src/io/path/ |
H A D | cleanse.rkt | 22 (define (return bstr) 43 (define new-bstr (clean-double-slashes bstr 'windows literal-start 50 [(= literal-start (bytes-length new-bstr)) (return new-bstr)] 59 [(letter-drive-start? bstr (bytes-length bstr)) 96 bstr] 98 (define new-bstr (make-bytes (- (bytes-length bstr) extra-count))) 109 (bytes-set! new-bstr j (bytes-ref bstr i))) 112 (bytes-set! new-bstr j (bytes-ref bstr i)) 116 (bytes-copy! new-bstr 0 bstr 0 to-backslash-from) 123 (bytes-copy! new-bstr 0 bstr 0 (add1 allow-double-before))]) [all …]
|
/dports/devel/gaul/gaul-devel-0.1849-0/src/ |
H A D | ga_bitstring.c | 71 void ga_bit_free( byte *bstr ) in ga_bit_free() argument 73 s_free( bstr ); in ga_bit_free() 157 ga_bit_set( bstr, n ); in ga_bit_randomize() 159 ga_bit_clear( bstr, n ); in ga_bit_randomize() 287 ga_bit_set( bstr, i ); in ga_bit_encode_binary_uint() 289 ga_bit_clear( bstr, i ); in ga_bit_encode_binary_uint() 309 if ( ga_bit_get( bstr, n ) ) in ga_bit_decode_binary_int() 329 ga_bit_set( bstr, n ); in ga_bit_encode_binary_int() 334 ga_bit_clear( bstr, n ); in ga_bit_encode_binary_int() 633 byte *bstr; in ga_bit_test() local [all …]
|
/dports/net/wireshark/wireshark-3.6.1/epan/ |
H A D | tvbuff_lz77huff.c | 218 bstr->mask <<= sizeof(bstr->mask) * 8 - 16; in bitstring_init() 237 return bstr->mask >> (sizeof(bstr->mask) * 8 - n); in bitstring_lookup() 245 bstr->mask = bstr->mask << n; in bitstring_skip() 246 bstr->bits = bstr->bits - n; in bitstring_skip() 249 bstr->mask += tvb_get_letohs(bstr->input->tvb, in bitstring_skip() 252 bstr->bitstring_index = bstr->bitstring_index + 2; in bitstring_skip() 253 bstr->bits = bstr->bits + 16; in bitstring_skip() 312 return bstr.bitstring_index == bstr.input->size; in do_uncompress() 322 if (bstr.bitstring_index >= bstr.input->size) in do_uncompress() 329 if (bstr.bitstring_index+1 >= bstr.input->size) in do_uncompress() [all …]
|
/dports/net/wireshark-lite/wireshark-3.6.1/epan/ |
H A D | tvbuff_lz77huff.c | 218 bstr->mask <<= sizeof(bstr->mask) * 8 - 16; in bitstring_init() 237 return bstr->mask >> (sizeof(bstr->mask) * 8 - n); in bitstring_lookup() 245 bstr->mask = bstr->mask << n; in bitstring_skip() 246 bstr->bits = bstr->bits - n; in bitstring_skip() 249 bstr->mask += tvb_get_letohs(bstr->input->tvb, in bitstring_skip() 252 bstr->bitstring_index = bstr->bitstring_index + 2; in bitstring_skip() 253 bstr->bits = bstr->bits + 16; in bitstring_skip() 312 return bstr.bitstring_index == bstr.input->size; in do_uncompress() 322 if (bstr.bitstring_index >= bstr.input->size) in do_uncompress() 329 if (bstr.bitstring_index+1 >= bstr.input->size) in do_uncompress() [all …]
|
/dports/net/tshark-lite/wireshark-3.6.1/epan/ |
H A D | tvbuff_lz77huff.c | 218 bstr->mask <<= sizeof(bstr->mask) * 8 - 16; in bitstring_init() 237 return bstr->mask >> (sizeof(bstr->mask) * 8 - n); in bitstring_lookup() 245 bstr->mask = bstr->mask << n; in bitstring_skip() 246 bstr->bits = bstr->bits - n; in bitstring_skip() 249 bstr->mask += tvb_get_letohs(bstr->input->tvb, in bitstring_skip() 252 bstr->bitstring_index = bstr->bitstring_index + 2; in bitstring_skip() 253 bstr->bits = bstr->bits + 16; in bitstring_skip() 312 return bstr.bitstring_index == bstr.input->size; in do_uncompress() 322 if (bstr.bitstring_index >= bstr.input->size) in do_uncompress() 329 if (bstr.bitstring_index+1 >= bstr.input->size) in do_uncompress() [all …]
|
/dports/net/tshark/wireshark-3.6.1/epan/ |
H A D | tvbuff_lz77huff.c | 218 bstr->mask <<= sizeof(bstr->mask) * 8 - 16; in bitstring_init() 237 return bstr->mask >> (sizeof(bstr->mask) * 8 - n); in bitstring_lookup() 245 bstr->mask = bstr->mask << n; in bitstring_skip() 246 bstr->bits = bstr->bits - n; in bitstring_skip() 249 bstr->mask += tvb_get_letohs(bstr->input->tvb, in bitstring_skip() 252 bstr->bitstring_index = bstr->bitstring_index + 2; in bitstring_skip() 253 bstr->bits = bstr->bits + 16; in bitstring_skip() 312 return bstr.bitstring_index == bstr.input->size; in do_uncompress() 322 if (bstr.bitstring_index >= bstr.input->size) in do_uncompress() 329 if (bstr.bitstring_index+1 >= bstr.input->size) in do_uncompress() [all …]
|
/dports/security/suricata/suricata-6.0.4/libhtp/test/ |
H A D | test_bstr.cpp | 46 bstr *p1; in TEST() 54 bstr *p1; in TEST() 55 bstr *p2; in TEST() 67 bstr *p1; in TEST() 68 bstr *p2; in TEST() 78 bstr *b; in TEST() 79 b = (bstr*) malloc(sizeof(bstr)); in TEST() 119 bstr *p1; in TEST() 130 bstr *p1; in TEST() 131 bstr *p2; in TEST() [all …]
|
/dports/devel/libhtp/libhtp-0.5.33/test/ |
H A D | test_bstr.cpp | 46 bstr *p1; in TEST() 54 bstr *p1; in TEST() 55 bstr *p2; in TEST() 67 bstr *p1; in TEST() 68 bstr *p2; in TEST() 78 bstr *b; in TEST() 79 b = (bstr*) malloc(sizeof(bstr)); in TEST() 119 bstr *p1; in TEST() 130 bstr *p1; in TEST() 131 bstr *p2; in TEST() [all …]
|
/dports/lang/racket/racket-8.3/src/io/port/ |
H A D | bytes-output.rkt | 58 [(bstr) 61 (do-write-bytes who out bstr 0 (bytes-length bstr)))] 62 [(bstr out) 65 (do-write-bytes who out bstr 0 (bytes-length bstr)))] 66 [(bstr out start-pos) 67 (write-bytes bstr out start-pos (and (bytes? bstr) (bytes-length bstr)))] 73 (check-range who start-pos end-pos (bytes-length bstr) bstr) 78 (do-write-bytes who o bstr 0 (bytes-length bstr))) 83 (check who bytes? bstr) 87 (check-range who start-pos end-pos (bytes-length bstr) bstr) [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/io/port/ |
H A D | bytes-output.rkt | 58 [(bstr) 61 (do-write-bytes who out bstr 0 (bytes-length bstr)))] 62 [(bstr out) 65 (do-write-bytes who out bstr 0 (bytes-length bstr)))] 66 [(bstr out start-pos) 67 (write-bytes bstr out start-pos (and (bytes? bstr) (bytes-length bstr)))] 73 (check-range who start-pos end-pos (bytes-length bstr) bstr) 78 (do-write-bytes who o bstr 0 (bytes-length bstr))) 83 (check who bytes? bstr) 87 (check-range who start-pos end-pos (bytes-length bstr) bstr) [all …]
|
/dports/net/Sockets/Sockets-2.3.9.9/ |
H A D | Base64.cpp | 40 const char *Base64::bstr = member in SOCKETS_NAMESPACE::Base64 78 output += bstr[ ((input[i] >> 2) & 0x3f) ]; in encode() 79 output += bstr[ ((input[i] << 4) & 0x30) ]; in encode() 83 output += bstr[ ((input[i] >> 2) & 0x3f) ]; in encode() 89 output += bstr[ ((input[i] >> 2) & 0x3f) ]; in encode() 92 output += bstr[ (input[i + 2] & 0x3f) ]; in encode() 117 output += bstr[ ((input[i] >> 2) & 0x3f) ]; in encode() 118 output += bstr[ ((input[i] << 4) & 0x30) ]; in encode() 131 output += bstr[ (input[i + 2] & 0x3f) ]; in encode() 174 output += bstr[ (input[i + 2] & 0x3f) ]; in encode() [all …]
|