पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv25.9.23

flat_buffers

डार्ट के लिए फ्लैटबफर्स पठन और लेखन लाइब्रेरी। मूल कार्य को कोनस्तांतिन स्केग्लोव और पॉल बेरी द्वारा डार्ट SDK टीम द्वारा किया गया है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
2.8 लाख
लाइक
45
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add flat_buffers

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक डार्ट लाइब्रेरी जो फ्लैटबफर्स को पढ़ने और लिखने के लिए है, एक उच्च प्रदर्शन अनुक्रमण प्रारूप। यह तंत्रों के बीच कम स्मृति अतिरिक्त लागत और विश्लेषण या कॉपी करने की आवश्यकता के बिना प्रभावी डेटा आदान-प्रदान की अनुमति देता है। डार्ट SDK टीम के कोनस्टेंटिन शेगलोव और पॉल बेरी के मूल कार्य पर आधारित, यह एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स पर क्रॉस-प्लेटफॉर्म उपयोग के लिए समर्थन करता है। गेम, रियल-टाइम सिस्टम और मोबाइल ऐप्स जैसे त्वरित, संक्षिप्त डेटा अनुक्रमण की आवश्यकता वाले एप्लिकेशन के लिए आदर्श है।

उपयोग

  • उच्च प्रदर्शन डेटा अनुक्रमण
  • प्लेटफॉर्म के बीच डेटा आदान-प्रदान
  • गेम डेवलपमेंट
  • रियल-टाइम डेटा प्रोसेसिंग
  • मोबाइल ऐप डेटा स्टोरेज
  • एम्बेडेड सिस्टम

मुख्य विशेषताएँ

  • शून्य कॉपी डिसीरियलाइजेशन
  • न्यूनतम मेमोरी उपयोग
  • क्रॉस-प्लेटफॉर्म संगतता
  • तेज़ पढ़ने-लिखने ऑपरेशन
  • स्कीमा परिभाषाओं का समर्थन करता है
  • .fbs फ़ाइलों से उत्पन्न कोड

इनके लिए उपयुक्त

  • प्रदर्शन-महत्वपूर्ण एप्लिकेशन
  • त्वरित डेटा पहुँच की आवश्यकता वाले मोबाइल और वेब एप्लिकेशन
  • खेल और सिमुलेशन
  • डेटा-भारी बैकएंड सेवाएँ
  • सीमित मेमोरी संसाधन वाले प्रणाली

विचार योग्य बातें

  • स्कीमा परिभाषा की आवश्यकता होती है (.fbs फ़ाइलें)
  • नए उपयोगकर्ताओं के लिए सीखने का ढलान
  • सीमित मानव-पढ़ने योग्य आउटपुट
  • द्विआधारी प्रारूप के कारण डिबगिंग के लिए उपयुक्त नहीं
  • कोड जनरेशन के चरण की आवश्यकता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

logo FlatBuffers

Build status BuildKite status Fuzzing Status Discord Chat Twitter Follow Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Quick Start

  1. Build the compiler for flatbuffers (flatc)

    Use cmake to create the build files for your platform and then perform the compilation (Linux example).

    cmake -G "Unix Makefiles"
    make -j
    
  2. Define your flatbuffer schema (.fbs)

    Write the schema to define the data you want to serialize. See monster.fbs for an example.

  3. Generate code for your language(s)

    Use the flatc compiler to take your schema and generate language-specific code:

    ./flatc --cpp --rust monster.fbs
    

    Which generates monster_generated.h and monster_generated.rs files.

  4. Serialize data

    Use the generated code, as well as the FlatBufferBuilder to construct your serialized buffer. (C++ example)

  5. Transmit/store/save Buffer

    Use your serialized buffer however you want. Send it to someone, save it for later, etc...

  6. Read the data

    Use the generated accessors to read the data from the serialized buffer.

    It doesn't need to be the same language/schema version, FlatBuffers ensures the data is readable across languages and schema versions. See the Rust example reading the data written by C++.

Documentation

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • macOS
  • Linux
  • Android
  • And any others with a recent C++ compiler (C++ 11 and newer)

Supported programming languages

Code generation and runtime libraries for many popular languages.

  1. C
  2. C++ - snapcraft.io
  3. C# - nuget.org
  4. Dart - pub.dev
  5. Go - go.dev
  6. Java - Maven
  7. JavaScript - NPM
  8. Kotlin
  9. Lobster
  10. Lua
  11. PHP
  12. Python - PyPI
  13. Rust - crates.io
  14. Swift - swiftpackageindex
  15. TypeScript - NPM
  16. Nim

Versioning

FlatBuffers does not follow traditional SemVer versioning (see rationale) but rather uses a format of the date of the release.

Contribution

To contribute to this project, see CONTRIBUTING.

Community

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.


श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट