gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.i18n.io / FourBytes

FourBytes

@ExperimentalUnsignedTypes data class FourBytes

Container class for four bytes, that can then be converted to a Long value, either as big endian or little endian.

Constructors

<init>

FourBytes(big: Byte, bigish: Byte, lowish: Byte, low: Byte, bigEndian: Boolean)FourBytes(uintValue: UInt, bigEndian: Boolean)

Initialize a four byte sequence with a 32 bit unsigned integer, either as big-endian or little-endian.

FourBytes(a: Byte, b: Byte, c: Byte, d: Byte)

Container class for four bytes, that can then be converted to a Long value, either as big endian or little endian.

Properties

a

val a: Byte

first byte

b

val b: Byte

second byte

c

val c: Byte

third byte

d

val d: Byte

fourth byte

Functions

getUIntValue

fun getUIntValue(bigEndian: Boolean): UInt

Convert the four byte values to one unsigned Int value.