Coder Social home page Coder Social logo

formulae-org / package-data-js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 71 KB

Data package for Fōrmulæ, in JavaScript

License: GNU Affero General Public License v3.0

JavaScript 100.00%
base64 byte-buffer data-conversion endianness hexadecimal-string unicode-strings base64string byte-manipulation float32 float64

package-data-js's Introduction

package-data-js

Data package for the Fōrmulæ programming language.

Fōrmulæ is also a software framework for visualization, edition and manipulation of complex expressions, from many fields. The code for an specific field —i.e. arithmetics— is encapsulated in a single unit called a Fōrmulæ package.

This repository contains the source code for the data package. It is intended for the conversion between byte buffers and arbitrary strings, Base64 strings, hexadecimal strings, etc.

The GitHub organization formulae-org encompasses the source code for the rest of packages, as well as the web application.

Capabilities

The Byte buffer expression

The byte buffer expression is a collecion of raw bytes.

Creation

  • Creation of a byte buffer of a given size (number of bytes) with zero values.

Conversions

  • Conversion from/to a byte buffer to/from an arbitrary string. Unicode strings are supported.
  • Conversion from/to a byte buffer to/from a Base64 string.
  • Conversion from/to a byte buffer to/from a hexadecimal string.
  • Conversion from/to a byte buffer to/from an array of integers.

Extraccion of data from a byte buffer

  • Exraction of an integer-8 (a byte) from a given position, and optional signing specification
  • Exraction of an integer-16 (usually known in other languages as short int) from a given position, and optional signing and endianness
  • Exraction of an integer-32 (usually known in other languages as int) from a given position, and optional signing and endianness
  • Exraction of an integer-64 (usually known in other languages as long int) from a given position, and optional signing and endianness
  • Exraction of a float-32 (usually known in other languages as float) from a given position, and optional endianness
  • Exraction of a float-64 (usually known in other languages as double float) from a given position, and optional endianness

Update data in a byte buffer

  • Update an integer-8 value (a byte) from a given position, and optional signing specification
  • Update an integer-16 value (usually known in other languages as short int) from a given position, and optional signing and endianness
  • Update an integer-32 value (usually known in other languages as int) from a given position, and optional signing and endianness
  • Update an integer-64 value (usually known in other languages as long int) from a given position, and optional signing and endianness
  • Update a float-32 value (usually known in other languages as float) from a given position, and optional endianness
  • Update a float-64 value (usually known in other languages as double float) from a given position, and optional endianness

Expressions for options

  • Signing
    • Unsigned (default)
    • Signed
  • Endianness
    • Little-endian (default)
    • Big-endian

package-data-js's People

Contributors

laurence-ugalde avatar

Stargazers

 avatar

Watchers

 avatar

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.