@adguard/agtree
Version:
Tool set for working with adblock filter lists
34 lines (33 loc) • 1.38 kB
TypeScript
/**
* Property map for binary serialization. This helps to reduce the size of the serialized data,
* as it allows us to use a single byte to represent a property.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION}!
*
* @note Only 256 values can be represented this way.
*/
export declare const HintNodeMarshallingMap: {
readonly Name: 1;
readonly Params: 2;
readonly Start: 3;
readonly End: 4;
};
export type HintNodeMarshallingMap = typeof HintNodeMarshallingMap[keyof typeof HintNodeMarshallingMap];
/**
* Value map for binary serialization. This helps to reduce the size of the serialized data,
* as it allows us to use a single byte to represent frequently used values.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION}!
*
* @note Only 256 values can be represented this way.
*/
export declare const FREQUENT_HINTS_SERIALIZATION_MAP: Map<string, number>;
/**
* Value map for binary serialization. This helps to reduce the size of the serialized data,
* as it allows us to use a single byte to represent frequently used values.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION}!
*
* @note Only 256 values can be represented this way.
*/
export declare const FREQUENT_PLATFORMS_SERIALIZATION_MAP: Map<string, number>;