diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 61fea3e..9b0b23e 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -87,6 +87,11 @@ [addressable] (.address ^Addressable addressable)) +(defn null? + "Checks if a memory address is null." + [addr] + (.equals (MemoryAddress/NULL) addr)) + (defn slice-global "Gets a slice of the global address space.