node-taglib-sharp / Exports / AsfUnknownObject
This class provides a representation of an ASF object that is unknown to the library, which can be read from and written to disk.
-
↳
AsfUnknownObject
• get data(): ByteVector
Gets the data contained in the current instance.
• set data(value): void
Sets the data contained in the current instance.
| Name | Type | Description |
|---|---|---|
value |
ByteVector |
Data to store in the current instance. Must be truthy. |
void
• get guid(): UuidWrapper
Gets the GUID that identifies the current instance.
BaseObject.guid
• get objectType(): AsfObjectType
Gets the type of the object for easy comparison.
BaseObject.objectType
• get originalSize(): number
Gets the original size of the current instance.
number
BaseObject.originalSize
▸ 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
AsfBaseObject.initializeFromFile
▸ 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
AsfBaseObject.initializeFromGuid
▸ 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. |
▸ Static fromFile(file, position): AsfUnknownObject
Constructs and initializes a new instance by reading the contents from a specified file.
| Name | Type | Description |
|---|---|---|
file |
File |
File from which the contents of the new instance will be read |
position |
number |
Index into the file where the object begins |