Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/convert
Tdata
Class Tdata
Index
Properties
crypto
fs
key
Data
options
Methods
compute
Data
Name
Key
compute
Data
Name
Key
Hex
create
Local
Key
decrypt
Local
encrypt
Local
get
Data
Name
read
Encrypted
File
read
File
read
Key
Data
read
Mtp
Authorization
write
Empty
Map
File
write
Encrypted
File
write
File
write
Key
Data
write
Mtp
Authorization
create
open
Properties
Readonly
crypto
crypto
:
IExtendedCryptoProvider
Readonly
fs
fs
:
INodeFsLike
Readonly
key
Data
keyData
:
TdKeyData
Readonly
options
options
:
TdataOptions
Methods
compute
Data
Name
Key
computeDataNameKey
(
accountIdx
:
number
)
:
Promise
<
Uint8Array
>
Parameters
accountIdx
:
number
Returns
Promise
<
Uint8Array
>
compute
Data
Name
Key
Hex
computeDataNameKeyHex
(
accountIdx
:
number
)
:
Promise
<
string
>
Parameters
accountIdx
:
number
Returns
Promise
<
string
>
create
Local
Key
createLocalKey
(
salt
:
Uint8Array
,
passcode
?:
string
)
:
Promise
<
Uint8Array
>
Parameters
salt
:
Uint8Array
passcode
:
string
= ...
Returns
Promise
<
Uint8Array
>
decrypt
Local
decryptLocal
(
encrypted
:
Uint8Array
,
key
:
Uint8Array
)
:
Promise
<
Uint8Array
>
Parameters
encrypted
:
Uint8Array
key
:
Uint8Array
Returns
Promise
<
Uint8Array
>
encrypt
Local
encryptLocal
(
data
:
Uint8Array
,
key
:
Uint8Array
)
:
Promise
<
Uint8Array
>
Parameters
data
:
Uint8Array
key
:
Uint8Array
Returns
Promise
<
Uint8Array
>
get
Data
Name
getDataName
(
idx
:
number
)
:
string
Parameters
idx
:
number
Returns
string
read
Encrypted
File
readEncryptedFile
(
filename
:
string
)
:
Promise
<
[
number
,
Uint8Array
]
>
Parameters
filename
:
string
Returns
Promise
<
[
number
,
Uint8Array
]
>
read
File
readFile
(
filename
:
string
)
:
Promise
<
[
number
,
Uint8Array
]
>
Parameters
filename
:
string
Returns
Promise
<
[
number
,
Uint8Array
]
>
read
Key
Data
readKeyData
()
:
Promise
<
TdKeyData
>
Returns
Promise
<
TdKeyData
>
read
Mtp
Authorization
readMtpAuthorization
(
accountIdx
?:
number
)
:
Promise
<
TdMtpAuthorization
>
Parameters
accountIdx
:
number
= 0
Returns
Promise
<
TdMtpAuthorization
>
write
Empty
Map
File
writeEmptyMapFile
(
accountIdx
:
number
)
:
Promise
<
void
>
Parameters
accountIdx
:
number
Returns
Promise
<
void
>
write
Encrypted
File
writeEncryptedFile
(
filename
:
string
,
data
:
Uint8Array
,
mkdir
?:
boolean
,
)
:
Promise
<
void
>
Parameters
filename
:
string
data
:
Uint8Array
mkdir
:
boolean
= false
Returns
Promise
<
void
>
write
File
writeFile
(
filename
:
string
,
data
:
Uint8Array
,
mkdir
?:
boolean
)
:
Promise
<
void
>
Parameters
filename
:
string
data
:
Uint8Array
mkdir
:
boolean
= false
Returns
Promise
<
void
>
write
Key
Data
writeKeyData
(
keyData
:
TdKeyData
)
:
Promise
<
void
>
Parameters
keyData
:
TdKeyData
Returns
Promise
<
void
>
write
Mtp
Authorization
writeMtpAuthorization
(
auth
:
TdMtpAuthorization
,
accountIdx
?:
number
,
)
:
Promise
<
void
>
Parameters
auth
:
TdMtpAuthorization
accountIdx
:
number
= 0
Returns
Promise
<
void
>
Static
create
create
(
options
:
TdataOptions
&
{
keyData
:
InputTdKeyData
}
)
:
Promise
<
Tdata
>
Parameters
options
:
TdataOptions
&
{
keyData
:
InputTdKeyData
}
Returns
Promise
<
Tdata
>
Static
open
open
(
options
:
TdataOptions
)
:
Promise
<
Tdata
>
Parameters
options
:
TdataOptions
Returns
Promise
<
Tdata
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
crypto
fs
key
Data
options
Methods
compute
Data
Name
Key
compute
Data
Name
Key
Hex
create
Local
Key
decrypt
Local
encrypt
Local
get
Data
Name
read
Encrypted
File
read
File
read
Key
Data
read
Mtp
Authorization
write
Empty
Map
File
write
Encrypted
File
write
File
write
Key
Data
write
Mtp
Authorization
create
open
Documentation - v0.19.5
Loading...