Giter Club home page Giter Club logo

typed-struct's People

Contributors

sarakusha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typed-struct's Issues

64bit integer / array BE or LE / multidimensional arrays / maybe a different syntax?

  • I'm submitting a ...

    • feature request
  • Summary

    I noticed a few changes that could be made to improve even more this amazing lib, here are they:

  1. Support for 64 bit integer

  2. Specify int array to be BE or LE

  3. Support for multidimensional arrays (this one I believe is not extremely necessary, but would be a huge plus!)

  4. For multidimensional array I thought of a new declaration, for example:

    const test = new Struct("Test")
    .field('fieldA', 'array', 4, 'UInt16LE') // array with explicit LE type
    .field('fieldB', 'array', 4, 'array', 10, 'UInt16LE') // 2D example
    .field('fieldC', 'array', 12, 'string', 20, 'win1251') // string array
    .field('fieldD', 'UInt64LE') // 64 bit integer
    .field('fieldE', 'string', 32, 'win1251') // regular string
    .field('fieldF', 'array', 2, 'array', 4, 'array', 8, 'UInt32LE') // 3D example ...
    .compile()

Strings support

  • I'm submitting a ...

    • bug report
    • feature request
    • question about the decisions made in the repository
    • question about how to use this project

    Not sure if there is already a way to use strings here, so I checked both boxes so we can talk about it here ๐Ÿ™‚

  • Summary

    Do we have support for using strings? And a array of String?

  • Off-topic

    Amazing lib you have going on here, the best on I've found so far!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.