Show / Hide Table of Contents

Class GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit

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.

Inheritance
object
GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Safebrowsing.v5.Data
Assembly: Google.Apis.Safebrowsing.v5.dll
Syntax
public class GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

EncodedData

The encoded deltas that are encoded using the Golomb-Rice coder.

Declaration
[JsonProperty("encodedData")]
public virtual string EncodedData { get; set; }
Property Value
Type Description
string

EntriesCount

The number of entries that are delta encoded in the encoded data. If only a single integer was encoded, this will be zero and the single value will be stored in first_value.

Declaration
[JsonProperty("entriesCount")]
public virtual int? EntriesCount { get; set; }
Property Value
Type Description
int?

FirstValue

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. If the field is empty, the entry is zero.

Declaration
[JsonProperty("firstValue")]
public virtual long? FirstValue { get; set; }
Property Value
Type Description
long?

RiceParameter

The Golomb-Rice parameter. This parameter is guaranteed to be between 3 and 30, inclusive.

Declaration
[JsonProperty("riceParameter")]
public virtual int? RiceParameter { get; set; }
Property Value
Type Description
int?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX