node-taglib-sharp / Exports / AsfMetadataDescriptor
This class provides a representation of an ASF description record to be used inside a MetadataLibraryObject.
Remarks
This class can store various types of information. Although toString provides
a representation of all types of values, it is recommended to determine which of the get*
methods to use by accessing type
-
DescriptorBase
↳
AsfMetadataDescriptor
- boolValue
- byteValue
- guidValue
- languageListIndex
- name
- streamNumber
- stringValue
- type
- uintValue
- ulongValue
- ushortValue
• new AsfMetadataDescriptor(languageListIndex
, streamNumber
, name
, type
, value
)
Constructs and initializes a new instance.
Name | Type | Description |
---|---|---|
languageListIndex |
number |
Index of the language |
streamNumber |
number |
Index of the stream |
name |
string |
Name of the metadata library object |
type |
AsfObjectDataType |
Datatype of the object |
value |
AsfDescriptorValue |
Value to store in the instance |
DescriptorBase.constructor
• get
boolValue(): boolean
Gets the boolean value of the current instance.
boolean
Boolean value of the current instance is returned if type is
DataType.Bool. undefined
is returned otherwise.
DescriptorBase.boolValue
• get
byteValue(): ByteVector
Gets the binary contents of the current instance.
Byte contents of the current instance, if type is
DataType.Bytes. undefined
is returned otherwise.
DescriptorBase.byteValue
• get
guidValue(): UuidWrapper
Gets the guid contents of the current instance.
GUID contents of the current instance, if type is
DataType.Guid. undefined
is returned otherwise.
DescriptorBase.guidValue
• get
languageListIndex(): number
Gets the index of the language associated with the current instance.
number
• get
name(): string
Gets the name of the current instance.
string
DescriptorBase.name
• get
streamNumber(): number
Gets the index of the stream associated with the current instance.
number
• get
stringValue(): string
Gets the string contents of the current instance.
string
String contents of the current instance if type is
DataType.Unicode. undefined
is returned otherwise.
DescriptorBase.stringValue
• get
type(): AsfObjectDataType
Gets the type of data contained in the current instance.
DescriptorBase.type
• get
uintValue(): number
Gets the 32-bit double word contents of the current instance.
number
Double word contents of the current instance, if type is
DataType.DWord. undefined
is returned otherwise.
DescriptorBase.uintValue
• get
ulongValue(): bigint
Gets the 64-bit quad word contents of the current instance.
bigint
Quad word contents of the current instance, if type is
DataType.QWord. undefined
is returned otherwise.
DescriptorBase.ulongValue
• get
ushortValue(): number
Gets the 16-bit word contents of the current instance.
number
Word contents of the current instance, if type is
DataType.Word. undefined
is returned otherwise.
DescriptorBase.ushortValue
▸ render(): ByteVector
Inherit Doc
DescriptorBase.render
▸ toString(): string
Inherit Doc
string
DescriptorBase.toString