ZipLong

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

Constructors

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

Properties

Link copied to clipboard
Archive extra data record signature.
Link copied to clipboard
Central File Header Signature
Link copied to clipboard
Data Descriptor signature.
Link copied to clipboard
Local File Header Signature
Link copied to clipboard
Marks ZIP archives that were supposed to be split or spanned but only needed a single segment in then end (so are actually neither split nor spanned).
Link copied to clipboard
val value: Long

Functions

Link copied to clipboard
open fun clone(): Any
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: Long): Array<Byte>
Get value as four bytes in big endian byte order.
Link copied to clipboard
open fun getIntValue(): Int
Get value as a (signed) java int
Link copied to clipboard
open fun getValue(bytes: Array<Byte>): Long
Helper method to get the value as a Java long from a four-byte array
open fun getValue(bytes: Array<Byte>, offset: Int): Long
Helper method to get the value as a Java long from four 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 putLong(buf: Array<Byte>, offset: Int)

open fun putLong(value: Long, buf: Array<Byte>, offset: Int)
put the value as four bytes in big endian byte order.
Link copied to clipboard
open fun toString(): String