@adguard/agtree
Version:
Tool set for working with adblock filter lists
22 lines (21 loc) • 879 B
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 MetadataCommentMarshallingMap: {
readonly Marker: 1;
readonly Header: 2;
readonly Value: 3;
readonly Start: 4;
readonly End: 5;
};
export type MetadataCommentMarshallingMap = typeof MetadataCommentMarshallingMap[keyof typeof MetadataCommentMarshallingMap];
/**
* Value map for binary deserialization. This helps to reduce the size of the serialized data,
* as it allows us to use a single byte to represent frequently used values.
*/
export declare const FREQUENT_HEADERS_DESERIALIZATION_MAP: Map<number, string>;