MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / arrayBufferToHex

Function arrayBufferToHex

entrypoints/service/tencent.ts:41–45  ·  view source on GitHub ↗
(buffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

39
40// 将二进制数据转换为十六进制字符串
41function arrayBufferToHex(buffer: ArrayBuffer): string {
42 return Array.from(new Uint8Array(buffer))
43 .map(b => b.toString(16).padStart(2, '0'))
44 .join('');
45}
46
47// 生成腾讯云API签名
48async function createTencentSignature(requestPayload: string, timestamp: number, secretId: string, secretKey: string): Promise<string> {

Callers 1

createTencentSignatureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected