diff options
Diffstat (limited to 'net/der/parse_values.cc')
-rw-r--r-- | net/der/parse_values.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/der/parse_values.cc b/net/der/parse_values.cc index aebfc53..93e99b7 100644 --- a/net/der/parse_values.cc +++ b/net/der/parse_values.cc @@ -164,6 +164,12 @@ bool ParseUint64(const Input& in, uint64_t* out) { return true; } +BitString::BitString(const Input& bytes, uint8_t unused_bits) + : bytes_(bytes), unused_bits_(unused_bits) { + DCHECK_LT(unused_bits, 8); + DCHECK(unused_bits == 0 || bytes.Length() != 0); +} + bool ParseBitString(const Input& in, BitString* out) { ByteReader reader(in); |