关于node.js的Hyperledger Fabric SDK的类型定义

问题描述 投票:0回答:1

对不起机器翻译

在@ types / fabric-client的类型定义文件index.d.ts中输入ByteBuffer与Buffer相同吗?

index.d.ts link

如果您有任何其他好的询问,请告诉我。

node.js typescript node-modules hyperledger-fabric type-definition
1个回答
0
投票

不,ByteBuffer和Buffer是不同的对象。缓冲区是node.js的原生,ByteBuffer是一个npm包(参见https://www.npmjs.com/package/bytebuffer)。例如,请参阅https://github.com/dcodeIO/ByteBuffer.js/issues/1将ByteBuffer转换为Buffer。

© www.soinside.com 2019 - 2024. All rights reserved.