TransferStatistics

class TransferStatistics(address: Long, isRef: Boolean) : GemNativeObj

Data transfer statistics

Constructors

Link copied to clipboard
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Gets the overall downloaded data size in bytes

Link copied to clipboard

Gets the overall requests count

Link copied to clipboard

Gets the overall uploaded data size in bytes

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getDownload(networkType: Int): Long

Gets the overall downloaded data size in bytes / network type ( ENetworkType )

Link copied to clipboard
external fun getRequests(networkType: Int): Long

Gets the overall requests count / network type ( ENetworkType )

Link copied to clipboard
external fun getUpload(networkType: Int): Long

Gets the uploaded data size in bytes / network type ( ENetworkType )

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun resetStatistics()

Reset transfer statistics