Address32

value class Address32(val value: UInt) : Comparable<Address32> (source)

Represents a 32-bit address in a PE file.

Constructors

Link copied to clipboard
constructor(value: UInt)

Types

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

A serializer for Address32.

Properties

Link copied to clipboard
val value: UInt

the unsigned integer representing the address

Functions

Link copied to clipboard
inline fun alignDown(align: UInt): Address32
Link copied to clipboard
inline fun alignUp(align: UInt): Address32
Link copied to clipboard
infix inline fun and(other: Int): Address32

Performs bitwise AND with an Int.

infix inline fun and(other: UInt): Address32

Performs bitwise AND with a UInt.

infix inline fun and(other: Address32): Address32

Performs bitwise AND with another Address32.

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

Inverts all bits of this address.

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

Performs bitwise OR with an Int.

infix inline fun or(other: UInt): Address32

Performs bitwise OR with a UInt.

infix inline fun or(other: Address32): Address32

Performs bitwise OR with another Address32.

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

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): Address32

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

Link copied to clipboard
inline fun toInt(): Int

converts this address to an integer.

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

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

Link copied to clipboard
inline fun toUInt(): UInt

converts this address to an integer.

Link copied to clipboard
infix inline fun xor(other: Int): Address32

Performs bitwise XOR with an Int.

infix inline fun xor(other: UInt): Address32

Performs bitwise XOR with a UInt.

infix inline fun xor(other: Address32): Address32

Performs bitwise XOR with another Address32.