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