summaryrefslogtreecommitdiff
path: root/src/node_crypto_bio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_crypto_bio.h')
-rw-r--r--src/node_crypto_bio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node_crypto_bio.h b/src/node_crypto_bio.h
index 380a3a6b4c..dea010fa01 100644
--- a/src/node_crypto_bio.h
+++ b/src/node_crypto_bio.h
@@ -32,7 +32,7 @@
namespace node {
namespace crypto {
-class NodeBIO {
+class NodeBIO : public MemoryRetainer {
public:
NodeBIO() : env_(nullptr),
initial_(kInitialBufferLength),
@@ -110,6 +110,11 @@ class NodeBIO {
static NodeBIO* FromBIO(BIO* bio);
+ void MemoryInfo(MemoryTracker* tracker) const override {
+ tracker->TrackThis(this);
+ tracker->TrackFieldWithSize("buffer", length_);
+ }
+
private:
static int New(BIO* bio);
static int Free(BIO* bio);