Members
userid :String
A string containing the user id. Usually in the form John Doe john@example.com
Type:
- String
- Source:
Methods
(static) fromObject(userId) → {UserIDPacket}
Create UserIDPacket instance from object
Parameters:
Name | Type | Description |
---|---|---|
userId |
Object | Object specifying userId name, email and comment |
- Source:
Returns:
- Type
- UserIDPacket
read(input)
Parsing function for a user id packet (tag 13).
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | Payload of a tag 13 packet |
- Source:
write() → {Uint8Array}
Creates a binary representation of the user id packet
- Source:
Returns:
Binary representation.
- Type
- Uint8Array