import BaseObject from "./baseObject"; import { ByteVector } from "../../byteVector"; import { ObjectType } from "../constants"; import { File } from "../../file"; /** * This class provides a representation of an ASF object that is unknown to the library, which can * be read from and written to disk. */ export default class UnknownObject extends BaseObject { private _data; private constructor(); /** * Constructs and initializes a new instance by reading the contents from a specified file. * @param file File from which the contents of the new instance will be read * @param position Index into the file where the object begins */ static fromFile(file: File, position: number): UnknownObject; /** * Gets the data contained in the current instance. */ get data(): ByteVector; /** * Sets the data contained in the current instance. * @param value Data to store in the current instance. Must be truthy. */ set data(value: ByteVector); /** @inheritDoc */ get objectType(): ObjectType; /** @inheritDoc */ render(): ByteVector; }