|
@@ -1,6 +1,6 @@
|
|
import promptAction from '@ohos.promptAction';
|
|
import promptAction from '@ohos.promptAction';
|
|
import { BusinessError, deviceInfo } from '@kit.BasicServicesKit';
|
|
import { BusinessError, deviceInfo } from '@kit.BasicServicesKit';
|
|
-import { HashMap } from '@kit.ArkTS';
|
|
|
|
|
|
+import { buffer, HashMap } from '@kit.ArkTS';
|
|
import { DeviceInfo } from '../bean/DeviceInfo';
|
|
import { DeviceInfo } from '../bean/DeviceInfo';
|
|
import { common } from '@kit.AbilityKit';
|
|
import { common } from '@kit.AbilityKit';
|
|
import { md5_hex } from '../util/md5';
|
|
import { md5_hex } from '../util/md5';
|
|
@@ -389,6 +389,10 @@ export class ToolsHelper {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ static toString(arrayBuffer: ArrayBuffer) {
|
|
|
|
+ return buffer.from(arrayBuffer).toString('base64')
|
|
|
|
+ }
|
|
|
|
+
|
|
private static setTimeOutMap: Map<string, ThrottleInterface> = new Map()
|
|
private static setTimeOutMap: Map<string, ThrottleInterface> = new Map()
|
|
private static uniqueIdMap = new WeakMap<Function, string>();
|
|
private static uniqueIdMap = new WeakMap<Function, string>();
|
|
|
|
|