Sorry for the machine translation
Is type ByteBuffer in the type definition file index.d.ts of @ types / fabric-client the same as Buffer?
Please tell me if you have any other good inquiries.
Sorry for the machine translation
Is type ByteBuffer in the type definition file index.d.ts of @ types / fabric-client the same as Buffer?
Please tell me if you have any other good inquiries.
Copyright © 2021 Jogjafile Inc.
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.