Address64

value class Address64(val value: ULong) : Comparable<Address64> (source)

Represents a 64-bit address in a PE file.

Constructors

Link copied to clipboard
constructor(value: ULong)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Serializer : KSerializer<Address64>

A serializer for Address64.

Properties

Link copied to clipboard

the long value representing the address

Functions

Link copied to clipboard
inline fun alignDown(align: ULong): Address64
Link copied to clipboard
inline fun alignUp(align: ULong): Address64
Link copied to clipboard
infix inline fun and(other: Long): Address64

Performs bitwise AND with a Long.

infix inline fun and(other: ULong): Address64

Performs bitwise AND with a ULong.

infix inline fun and(other: Address64): Address64

Performs bitwise AND with another Address64.

Link copied to clipboard
open operator override fun compareTo(other: Address64): Int
Link copied to clipboard
inline operator fun inv(): Address64

Inverts all bits of this address.

Link copied to clipboard
inline fun isAlignedTo(align: ULong): Boolean
Link copied to clipboard
inline operator fun minus(other: Int): Address64
inline operator fun minus(other: Long): Address64
inline operator fun minus(other: UInt): Address64
inline operator fun minus(other: ULong): Address64
Link copied to clipboard
infix inline fun or(other: Long): Address64

Performs bitwise OR with a Long.

infix inline fun or(other: ULong): Address64

Performs bitwise OR with a ULong.

infix inline fun or(other: Address64): Address64

Performs bitwise OR with another Address64.

Link copied to clipboard
inline operator fun plus(other: Int): Address64
inline operator fun plus(other: Long): Address64
inline operator fun plus(other: UInt): Address64
inline operator fun plus(other: ULong): Address64
Link copied to clipboard
inline operator fun rem(other: Int): Address64
inline operator fun rem(other: Long): Address64
inline operator fun rem(other: UInt): Address64
inline operator fun rem(other: ULong): Address64
Link copied to clipboard
infix inline fun shl(bits: Int): Address64

Shifts the bits of this address to the left by the given number of bits.

Link copied to clipboard
infix inline fun shr(bits: Int): Address64

Shifts the bits of this address to the right by the given number of bits.

Link copied to clipboard
inline fun toLong(): Long

converts this address to an integer.

Link copied to clipboard
open override fun toString(): String

Convert to string in hex format, e.g. "0x123456789abcdef0"

Link copied to clipboard
inline fun toULong(): ULong

converts this address to an integer.

Link copied to clipboard
infix inline fun xor(other: Long): Address64

Performs bitwise XOR with a Long.

infix inline fun xor(other: ULong): Address64

Performs bitwise XOR with a ULong.

infix inline fun xor(other: Address64): Address64

Performs bitwise XOR with another Address64.