Skip to content

Latest commit

 

History

History
73 lines (40 loc) · 1.74 KB

File metadata and controls

73 lines (40 loc) · 1.74 KB

node-taglib-sharp / Exports / UuidWrapper

Class: UuidWrapper

Wrapper around the UUID package to make it easier to handle UUIDs.

Table of contents

Constructors

Methods

Constructors

constructor

new UuidWrapper(source?)

Constructs a instance using either the supplied UUID or generating a new, random one.

Parameters

Name Type Description
source? string | ByteVector If provided, it is used as the bytes of the instance. If a falsy value is provided, a new v4 UUID will be generated.

Methods

equals

equals(b): boolean

Determines whether this instance and another instance represent the same UUID.

Parameters

Name Type Description
b UuidWrapper The other UUID to compare this one to.

Returns

boolean


toBytes

toBytes(): ByteVector

Gets the bytes that make up the UUID.

Returns

ByteVector


toString

toString(): string

Gets a string representation of the UUID.

Returns

string