forked from quic-issues/427e7578-d7bf-49c8-aee9-2dd999e25316
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
export class ContentAny {
|
|
/**
|
|
* @param {Array<any>} arr
|
|
*/
|
|
constructor(arr: Array<any>);
|
|
/**
|
|
* @type {Array<any>}
|
|
*/
|
|
arr: Array<any>;
|
|
/**
|
|
* @return {number}
|
|
*/
|
|
getLength(): number;
|
|
/**
|
|
* @return {Array<any>}
|
|
*/
|
|
getContent(): Array<any>;
|
|
/**
|
|
* @return {boolean}
|
|
*/
|
|
isCountable(): boolean;
|
|
/**
|
|
* @return {ContentAny}
|
|
*/
|
|
copy(): ContentAny;
|
|
/**
|
|
* @param {number} offset
|
|
* @return {ContentAny}
|
|
*/
|
|
splice(offset: number): ContentAny;
|
|
/**
|
|
* @param {ContentAny} right
|
|
* @return {boolean}
|
|
*/
|
|
mergeWith(right: ContentAny): boolean;
|
|
/**
|
|
* @param {Transaction} transaction
|
|
* @param {Item} item
|
|
*/
|
|
integrate(transaction: Transaction, item: Item): void;
|
|
/**
|
|
* @param {Transaction} transaction
|
|
*/
|
|
delete(transaction: Transaction): void;
|
|
/**
|
|
* @param {StructStore} store
|
|
*/
|
|
gc(store: StructStore): void;
|
|
/**
|
|
* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder
|
|
* @param {number} offset
|
|
*/
|
|
write(encoder: UpdateEncoderV1 | UpdateEncoderV2, offset: number): void;
|
|
/**
|
|
* @return {number}
|
|
*/
|
|
getRef(): number;
|
|
}
|
|
export function readContentAny(decoder: UpdateDecoderV1 | UpdateDecoderV2): ContentAny;
|
|
import { Transaction } from "../utils/Transaction.js";
|
|
import { Item } from "./Item.js";
|
|
import { StructStore } from "../utils/StructStore.js";
|
|
import { UpdateEncoderV1 } from "../utils/UpdateEncoder.js";
|
|
import { UpdateEncoderV2 } from "../utils/UpdateEncoder.js";
|
|
import { UpdateDecoderV1 } from "../utils/UpdateDecoder.js";
|
|
import { UpdateDecoderV2 } from "../utils/UpdateDecoder.js";
|
|
//# sourceMappingURL=ContentAny.d.ts.map
|