@Retention(value=CLASS) @Target(value={METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,TYPE_USE}) public @interface Address
@Address declares that the annotated value represents a native
memory address or base pointer. It improves API semantics by distinguishing
raw addresses from sizes, indexes, and object-relative offsets.
Retention and effect: Stored in the class file but ignored by the runtime unless Chronicle tooling checks it.
This annotation is semantic only. Use it alongside explicit range guards
such as MemoryAegis.assertAddressRange(...) when a concrete access
width or slice length is known.
@Addresslong address; int readInt(@Addresslong address) { assert SKIP_ASSERTIONS || MemoryAegis.assertAddressRange(address, Integer.BYTES); return ...; }
NonNegativepublic abstract String value
Copyright © 2026 Chronicle Software Ltd. All rights reserved.