HomeSort by relevance Sort by last modified time
    Searched refs:unused_bits (Results 1 - 3 of 3) sorted by null

  /external/scapy/scapy/asn1/
asn1.py 300 super(ASN1_Object, self).__setattr__("unused_bits", 0)
310 unused_bits = 0
312 unused_bits = 8 - (len(value) % 8)
313 padded_value = str_value + ("0" * unused_bits)
318 unused_bits = 0
321 super(ASN1_Object, self).__setattr__("unused_bits", unused_bits)
322 elif name == "unused_bits":
323 print("Invalid operation: unused_bits rewriting is not supported.")
329 return "<%s[%s] (%d unused bit%s)>" % (self.__dict__.get("name", self.__class__.__name__), v, self.unused_bits, "s" if self.unused_bits>1 else ""
    [all...]
ber.py 311 # /!\ the unused_bits information is lost after this decoding
314 unused_bits = orb(s[0])
315 if safe and unused_bits > 7:
316 raise BER_Decoding_Error("BERcodec_BIT_STRING: too many unused_bits advertised", remaining=s)
318 if unused_bits > 0:
319 s = s[:-unused_bits]
322 raise BER_Decoding_Error("BERcodec_BIT_STRING found no content (not even unused_bits byte)", remaining=s)
328 unused_bits = 0
330 unused_bits = 8 - len(s)%8
331 s += b"0"*unused_bits
    [all...]
  /external/brotli/c/dec/
bit_reader.h 224 uint32_t unused_bits = unused_bytes << 3; local
227 if (unused_bits == sizeof(br->val_) << 3) {
230 br->val_ <<= unused_bits;
232 br->bit_pos_ += unused_bits;

Completed in 2078 milliseconds