Interface MsgPackStatic

Index

Properties

Methods

Properties

public worker: string

Methods

public download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback)

Parameters

public pack(data: any, toString?: boolean): any

Parameters

  • data: any

    string or ByteArray.

  • toString?: boolean optional

    return string value if true.

Returns

any

string or ByteArray or false. pack failed if false.

public unpack(data: any): any

Parameters

  • data: any

    string or ByteArray.

Returns

any

string or ByteArray or undefined. unpack failed if undefined.

public upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback)

Parameters