ZipEightByteInteger

Utility class that represents an eight byte integer with conversion rules for the little endian byte order of ZIP files.

Since

1.2

Constructors

Link copied to clipboard
constructor(value: BigInteger)
Create instance from a number.
constructor(bytes: Array<Byte>)
Create instance from bytes.
constructor(bytes: Array<Byte>, offset: Int)
Create instance from the eight bytes starting at offset.
constructor(value: Long)
Create instance from a number.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Override to make two instances with same value equal.
Link copied to clipboard
open fun getBytes(): Array<Byte>
open fun getBytes(value: BigInteger): Array<Byte>
open fun getBytes(value: Long): Array<Byte>
Get value as eight bytes in big endian byte order.
Link copied to clipboard
open fun getLongValue(): Long
Get value as Java long.
open fun getLongValue(bytes: Array<Byte>): Long
Helper method to get the value as a Java long from an eight-byte array
open fun getLongValue(bytes: Array<Byte>, offset: Int): Long
Helper method to get the value as a Java long from eight bytes starting at given array offset
Link copied to clipboard
open fun getValue(bytes: Array<Byte>): BigInteger
Helper method to get the value as a Java long from an eight-byte array
open fun getValue(bytes: Array<Byte>, offset: Int): BigInteger
Helper method to get the value as a Java BigInteger from eight bytes starting at given array offset
Link copied to clipboard
open fun hashCode(): Int
Override to make two instances with same value equal.
Link copied to clipboard
open fun toString(): String