status
- C
- C++
- CSharp
- Java
- JavaScript
- Swift
- Python
- Go
- PHP
// MTE status description where "status" is the MteStatus.
const char* status_description = mte_base_status_description(status);
// MTE status name.
const char* status_name = mte_base_status_name(status);
// MTE status description where "status" is the MteStatus.
const char* statusDescription = MteBase::getStatusDescription(status);
// MTE status name.
const char* statusName = MteBase::getStatusName(status);
// MTE status description where "status" is the MteStatus
string statusDescription = mteEncoder.GetStatusDescription(status);
// MTE status name
string StatusName = mteEncoder.GetStatusName(status);
// MTE status description where "status" is the MteStatus
String statusDescription = MteBase.getStatusDescription(status);
// MTE status name
String StatusName = MteBase.getStatusName(status);
import { MteStatus } from "mte-wasm-browser";
// encode string, and get back encode result
const encodeResult = mteEncoder.encodeStrB64(str);
// check if encode failed
if (encodeResult.status !== MteStatus.mte_status_success) {
const status = mteBase.getStatusName(encodeResult);
const message = mteBase.getStatusDescription(encodeResult);
throw new Error(`Error when MTE encoding data.\n${status}: ${message}`);
return "";
}
// if status was success, return encode result
return encodeResult.str;
// MTE status name and description where "status" is the mte_status returned from a function
let statusName: String = MteBase.getStatusName(status)
let statusDescription: String = MteBase.getStatusDescription(status)
# MTE status description where "status" is the MteStatus.
status_description = MteBase.get_status_description(status)
# MTE status name.
status_name = MteBase.get_status_name(status)
// MTE status description where "status" == MteStatus
statusDescription := mte.GetStatusDescription(status)
// MTE status name where "status" == MteStatus
statusName := mte.GetStatusName(status)
<?php
$mteBase = new MteBase();
// MTE status description where "status" == MteStatus
$statusDescription = $mteBase->getStatusDescription(constant($status));
// MTE status name where "status" == MteStatus
$statusName = $mteBase->getStatusName(constant($status))
?>