GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit class
The Rice-Golomb encoded data.
Used for either hashes or removal indices. It is guaranteed that every hash
or index here has the same length, and this length is exactly 32 bits.
Generally speaking, if we sort all the entries lexicographically, we will
find that the higher order bits tend not to change as frequently as lower
order bits. This means that if we also take the adjacent difference between
entries, the higher order bits have a high probability of being zero. This
exploits this high probability of zero by essentially choosing a certain
number of bits; all bits more significant than this are likely to be zero so
we use unary encoding. See the rice_parameter
field. Historical note: the
Rice-delta encoding was first used in V4 of this API. In V5, two significant
improvements were made: firstly, the Rice-delta encoding is now available
with hash prefixes longer than 4 bytes; secondly, the encoded data are now
treated as big-endian so as to avoid a costly sorting step.
Constructors
- GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit.new({String? encodedData, int? entriesCount, int? firstValue, int? riceParameter})
- GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit.fromJson(Map json_)
Properties
- encodedData ↔ String?
-
The encoded deltas that are encoded using the Golomb-Rice coder.
getter/setter pair
-
encodedDataAsBytes
↔ List<
int> -
getter/setter pair
- entriesCount ↔ int?
-
The number of entries that are delta encoded in the encoded data.
getter/setter pair
- firstValue ↔ int?
-
The first entry in the encoded data (hashes or indices), or, if only a
single hash prefix or index was encoded, that entry's value.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- riceParameter ↔ int?
-
The Golomb-Rice parameter.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited