v1.2.3
buffer
バイトバッファとストリームを効率的に操作し、バイナリデータ形式を読み書きするためのユーティリティ関数およびクラス。
19いいね 22.9万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
バイトバッファおよびストリーム用のDartライブラリ。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Utility functions and classes to work with byte buffers and streams efficiently, to read and write binary data formats.
Here are some examples of how you can use the buffer package:
This example demonstrates how to write unsigned integers of different sizes to a ByteDataWriter and then read them back using a ByteDataReader.
final writer = ByteDataWriter();
writer.writeUint8(255);
writer.writeUint16(65535);
writer.writeUint32(4294967295);
final reader = ByteDataReader();
reader.add(writer.toBytes());
print(reader.readUint8()); // Output: 255
print(reader.readUint16()); // Output: 65535
print(reader.readUint32()); // Output: 4294967295