node-taglib-sharp / Exports / AsfBaseObject
Base object that provides a basic representation of an ASF object that can be written to and read from the disk.
-
AsfBaseObject
• Protected new AsfBaseObject()
• get guid(): UuidWrapper
Gets the GUID that identifies the current instance.
• Abstract get objectType(): AsfObjectType
Gets the type of the object for easy comparison.
• get originalSize(): number
Gets the original size of the current instance.
number
▸ Protected initializeFromFile(file, position): void
Initializes a new instance by reading the contents from a specified position in a specified file.
| Name | Type | Description |
|---|---|---|
file |
File |
File which contains the details of the new instance to create |
position |
number |
Position in file where the object begins |
void
▸ Protected initializeFromGuid(guid): void
Initializes a new instance with a specified GUID.
| Name | Type | Description |
|---|---|---|
guid |
UuidWrapper |
GUID to use for the new instance. |
void
▸ Abstract render(): ByteVector
Renders the current instance as a raw ASF object.
▸ Protected renderInternal(data): ByteVector
Renders the current instance as a raw ASF object containing the specified data.
Remarks
Child classes implementing () should render their contents and then send the data through this method to produce the final output.
| Name | Type | Description |
|---|---|---|
data |
ByteVector |
Data to store in the rendered version of the current instance. |