ssap_app/node_modules/@expo/metro/metro-source-map/B64Builder.d.ts

36 lines
1016 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
/**
* Efficient builder for base64 VLQ mappings strings.
*
* This class uses a buffer that is preallocated with one megabyte and is
* reallocated dynamically as needed, doubling its size.
*
* Encoding never creates any complex value types (strings, objects), and only
* writes character values to the buffer.
*
* For details about source map terminology and specification, check
* https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
*/
declare class B64Builder {
buffer: Buffer;
pos: number;
hasSegment: boolean;
constructor();
markLines(n: number): this;
startSegment(column: number): this;
append(value: number): this;
toString(): string;
_writeByte(byte: number): void;
_realloc(): void;
}
export default B64Builder;