简体   繁体   中英

About type definition of Hyperledger Fabric SDK for node.js

Sorry for the machine translation

Is type ByteBuffer in the type definition file index.d.ts of @ types / fabric-client the same as Buffer?

index.d.ts link

Please tell me if you have any other good inquiries.

No, a ByteBuffer and Buffer are different objects. The Buffer is native to node.js and ByteBuffer is an npm package (see https://www.npmjs.com/package/bytebuffer ). For example, see https://github.com/dcodeIO/ByteBuffer.js/issues/1 for converting a ByteBuffer to Buffer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM