Lines Matching +full:least +full:-

2 * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
18 /* The smallest value requiring a 1, 2, 4, or 8-byte representation. */
25 #define OSSL_QUIC_VLINT_1B_MAX (OSSL_QUIC_VLINT_2B_MIN - 1)
26 #define OSSL_QUIC_VLINT_2B_MAX (OSSL_QUIC_VLINT_4B_MIN - 1)
27 #define OSSL_QUIC_VLINT_4B_MAX (OSSL_QUIC_VLINT_8B_MIN - 1)
28 #define OSSL_QUIC_VLINT_8B_MAX (((uint64_t)1 << 62) - 1)
30 /* The largest value representable as a variable-length integer. */
34 * Returns the number of bytes needed to encode v in the QUIC variable-length
57 * This function writes a QUIC varable-length encoded integer to buf.
63 * Precondition: buf is at least ossl_quic_vlint_enc_len(v) bytes in size
71 * This function writes a QUIC variable-length encoded integer to buf. The
75 * It is the caller's responsibility to ensure that the buffer is of at least n
76 * bytes, and that v is representable by a n-byte QUIC variable-length integer.
79 * 1-byte encoding: [0, 2** 6-1]
80 * 2-byte encoding: [0, 2**14-1]
81 * 4-byte encoding: [0, 2**30-1]
82 * 8-byte encoding: [0, 2**62-1]
84 * Precondition: buf is at least n bytes in size (unchecked)
93 * Given the first byte of an encoded QUIC variable-length integer, returns
103 * Given a buffer containing an encoded QUIC variable-length integer, returns
104 * the decoded value. The buffer must be of at least
108 * Precondition: buf is at least ossl_quic_vlint_decode_len(buf[0]) bytes in size
115 * QUIC variable-length integer at the start of the buffer and writes the result
120 * Precondition: buf is at least buf_len bytes in size