Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 1.65 KB

README.md

File metadata and controls

19 lines (10 loc) · 1.65 KB

@json-serialization/binary

English | 简体中文

Introduction

@json-serialization/binary provide s a binary serialization and deserialization mechanism, supporting ArrayBuffer, Buffer, Blob, File, Uint8Array these data types.

Note: @json-serialization/binary needs to be used in conjunction with json-serialization. This is an extensible asynchronous JSON serialization library. You can get to know it by reading this document.

Precautions

  • Considering that Buffer is not supported in a web environment, Blob and File may not be supported in lower versions of Node.js environment. During deserialization, @json-serialization/binary may convert these three data types to and from each other to ensure adaptation to the running environment.

  • In order to prevent Buffer from being preprocessed by JSON.stringify, @json-serialization/binary will internally set the toJSON attribute on the Buffer object instance, with the value set to null. Please pay attention to and handle the possible Influence.

License

MIT