summaryrefslogtreecommitdiff
path: root/src/string_bytes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_bytes.h')
-rw-r--r--src/string_bytes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/string_bytes.h b/src/string_bytes.h
index 79520d2470..7108862139 100644
--- a/src/string_bytes.h
+++ b/src/string_bytes.h
@@ -106,6 +106,10 @@ class StringBytes {
const uint16_t* buf,
size_t buflen);
+ static v8::Local<v8::Value> Encode(v8::Isolate* isolate,
+ const char* buf,
+ enum encoding encoding);
+
// Deprecated legacy interface
NODE_DEPRECATED("Use IsValidString(isolate, ...)",