FLUTTER ECOSYSTEM

isoos/buffer

바이트 버퍼 및 스트림을 위한 Dart 라이브러리입니다.

버퍼 프로젝트 이미지
Stars
22
Forks
10
최근 푸시(UTC)
2024. 3. 11.
프로젝트 상태
활성
István Soós GitHub avatar
GITHUB User

István Soós ↗

software engineer

@agilordBudapest, Hungary공식 웹사이트 ↗
언어Dart

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • lints개발 의존성^3.0.0
  • test개발 의존성^1.16.7

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Buffer - Dart library for byte buffers and streams.

Pub

Utility functions and classes to work with byte buffers and streams efficiently, to read and write binary data formats.

Examples

Here are some examples of how you can use the buffer package:

Writing to a ByteDataWriter and reading from a ByteDataReader

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