@sovereignbase/bytecodec
Preparing search index...
index
Bytes
Class Bytes
Convenience wrapper around the codec functions.
Index
Constructors
constructor
Properties
base45
base64
base64url
gzip
utf8
Methods
concat
derive
equals
generate
normalize
Constructors
constructor
new
Bytes
()
:
Bytes
Returns
Bytes
Properties
Static
Readonly
base45
base45
:
{
decode
:
(
base45String
:
string
)
=>
Uint8Array
;
encode
:
(
bytes
:
ByteSource
)
=>
string
;
}
= ...
Type Declaration
decode
:
(
base45String
:
string
)
=>
Uint8Array
encode
:
(
bytes
:
ByteSource
)
=>
string
Static
Readonly
base64
base64
:
{
decode
:
(
base64String
:
string
)
=>
Uint8Array
;
encode
:
(
bytes
:
ByteSource
)
=>
string
;
}
= ...
Type Declaration
decode
:
(
base64String
:
string
)
=>
Uint8Array
encode
:
(
bytes
:
ByteSource
)
=>
string
Static
Readonly
base64url
base64url
:
{
decode
:
(
base64UrlString
:
string
)
=>
Uint8Array
;
encode
:
(
bytes
:
ByteSource
)
=>
string
;
}
= ...
Type Declaration
decode
:
(
base64UrlString
:
string
)
=>
Uint8Array
encode
:
(
bytes
:
ByteSource
)
=>
string
Static
Readonly
gzip
gzip
:
{
decode
:
(
bytes
:
ByteSource
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
encode
:
(
bytes
:
ByteSource
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
}
= ...
Type Declaration
decode
:
(
bytes
:
ByteSource
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
encode
:
(
bytes
:
ByteSource
)
=>
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Static
Readonly
utf8
utf8
:
{
decode
:
(
text
:
string
)
=>
Uint8Array
;
encode
:
(
bytes
:
ByteSource
)
=>
string
;
}
= ...
Type Declaration
decode
:
(
text
:
string
)
=>
Uint8Array
encode
:
(
bytes
:
ByteSource
)
=>
string
Methods
Static
concat
concat
(
sources
:
ByteSource
[]
)
:
Uint8Array
Parameters
sources
:
ByteSource
[]
Returns
Uint8Array
Static
derive
derive
(
base
:
ByteSource
,
domain
:
ByteSource
,
byteLength
:
number
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
base
:
ByteSource
domain
:
ByteSource
byteLength
:
number
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Static
equals
equals
(
a
:
ByteSource
,
b
:
ByteSource
)
:
boolean
Parameters
a
:
ByteSource
b
:
ByteSource
Returns
boolean
Static
generate
generate
(
byteLength
:
number
)
:
Uint8Array
Parameters
byteLength
:
number
Returns
Uint8Array
Static
normalize
normalize
(
bytes
:
ByteSource
)
:
Uint8Array
Parameters
bytes
:
ByteSource
Returns
Uint8Array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base45
base64
base64url
gzip
utf8
Methods
concat
derive
equals
generate
normalize
@sovereignbase/bytecodec
Loading...
Convenience wrapper around the codec functions.