diff options
| author | Brian Potchik <brian@vector35.com> | 2025-10-03 18:48:17 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-10-03 18:48:17 -0400 |
| commit | 0fb07c24d8321bdec2d5d5a254acbb9ceaee807a (patch) | |
| tree | 181ed447398789d8f4d31614ee3edb8d81ebb0af /binaryninjacore.h | |
| parent | 183ef5e2f0ba6124efac98efba67757f1e8b2aa9 (diff) | |
Add zero-copy data pointer access for BinaryData objects for API-side container transforms.
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 67b17bc4..fb2e8ae8 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,7 +37,7 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 134 +#define BN_CURRENT_CORE_ABI_VERSION 135 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and @@ -4328,6 +4328,8 @@ extern "C" BINARYNINJACOREAPI size_t BNReadViewData(BNBinaryView* view, void* dest, uint64_t offset, size_t len); BINARYNINJACOREAPI BNDataBuffer* BNReadViewBuffer(BNBinaryView* view, uint64_t offset, size_t len); + BINARYNINJACOREAPI const uint8_t* BNGetViewDataPointer(BNBinaryView* view); + BINARYNINJACOREAPI size_t BNGetViewDataLength(BNBinaryView* view); BINARYNINJACOREAPI size_t BNWriteViewData(BNBinaryView* view, uint64_t offset, const void* data, size_t len); BINARYNINJACOREAPI size_t BNWriteViewBuffer(BNBinaryView* view, uint64_t offset, BNDataBuffer* data); |
