Skip to content

io7m-com/jintegers

Repository files navigation

jintegers

Maven Central Maven Central (snapshot) Codecov Java Version

com.io7m.jintegers

JVM Platform Status
OpenJDK (Temurin) Current Linux Build (OpenJDK (Temurin) Current, Linux)
OpenJDK (Temurin) LTS Linux Build (OpenJDK (Temurin) LTS, Linux)
OpenJDK (Temurin) Current Windows Build (OpenJDK (Temurin) Current, Windows)
OpenJDK (Temurin) LTS Windows Build (OpenJDK (Temurin) LTS, Windows)

jintegers

The jintegers package provides basic functions to pack and unpack integers to/from byte arrays in specific byte orders.

Status

As the Java platform evolves, libraries that may have been necessary in the past can become unnecessary due to new platform features. The jintegers package falls into this category: The new Foreign Function And Memory API makes much of the functionality here redundant.

This package is in maintenance mode and will not see any new functionality.

Features

Usage

byte data[] = new byte[4];

Signed32.packToBytesLittleEndian(23, data);

int r = Signed32.unpackFromBytesLittleEndian(data);