summaryrefslogtreecommitdiff
path: root/core/libdeno/deno.h
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-05-02 00:18:18 +0200
committerBert Belder <bertbelder@gmail.com>2019-05-02 06:25:44 +0200
commitae0544b7ce8370fcd9322dd10a8c2ebdcbabe75c (patch)
treedaf4280ceb1e6a4da127f3db9eea06837082b113 /core/libdeno/deno.h
parentc05cbc8eac91a9e1ab9b87c688ac4392eff01445 (diff)
core: remove support for moving deno_buf ownership from C++ to JavaScript
The functionality hasn't been in use for a long time. Without this feature, the `alloc_ptr` and `alloc_len` fields are no longer necessary.
Diffstat (limited to 'core/libdeno/deno.h')
-rw-r--r--core/libdeno/deno.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/libdeno/deno.h b/core/libdeno/deno.h
index f83f00834..f8bc9a82d 100644
--- a/core/libdeno/deno.h
+++ b/core/libdeno/deno.h
@@ -17,10 +17,8 @@ typedef deno::PinnedBuf::Raw deno_pinned_buf;
// Data that gets transmitted.
typedef struct {
- uint8_t* alloc_ptr; // Start of memory allocation (from `new uint8_t[len]`).
- size_t alloc_len; // Length of the memory allocation.
- uint8_t* data_ptr; // Start of logical contents (within the allocation).
- size_t data_len; // Length of logical contents.
+ uint8_t* data_ptr;
+ size_t data_len;
} deno_buf;
typedef struct {