Skip to content

Latest commit

 

History

History
162 lines (89 loc) · 3.34 KB

File metadata and controls

162 lines (89 loc) · 3.34 KB

node-taglib-sharp / Exports / AsfBaseObject

Class: AsfBaseObject

Base object that provides a basic representation of an ASF object that can be written to and read from the disk.

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

• Protected new AsfBaseObject()

Accessors

guid

• get guid(): UuidWrapper

Gets the GUID that identifies the current instance.

Returns

UuidWrapper


objectType

• Abstract get objectType(): AsfObjectType

Gets the type of the object for easy comparison.

Returns

AsfObjectType


originalSize

• get originalSize(): number

Gets the original size of the current instance.

Returns

number

Methods

initializeFromFile

▸ Protected initializeFromFile(file, position): void

Initializes a new instance by reading the contents from a specified position in a specified file.

Parameters

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

Returns

void


initializeFromGuid

▸ Protected initializeFromGuid(guid): void

Initializes a new instance with a specified GUID.

Parameters

Name Type Description
guid UuidWrapper GUID to use for the new instance.

Returns

void


render

▸ Abstract render(): ByteVector

Renders the current instance as a raw ASF object.

Returns

ByteVector


renderInternal

▸ 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.

Parameters

Name Type Description
data ByteVector Data to store in the rendered version of the current instance.

Returns

ByteVector