FLUTTER ECOSYSTEM

isoos/buffer

बाइट बफर और स्ट्रीम के लिए डार्ट लाइब्रेरी।

बफर प्रोजेक्ट कवर
Stars
22
Forks
10
अंतिम पुश (UTC)
11 मार्च 2024
प्रोजेक्ट स्थिति
सक्रिय
István Soós GitHub avatar
GITHUB User

István Soós ↗

software engineer

भाषाएँ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