Skip to content
This repository
tree: 791d4c6df1
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (10 sloc) 0.313 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef buffer_compat_h
#define buffer_compat_h

#include <node.h>
#include <node_buffer.h>
#include <v8.h>

char *BufferData(node::Buffer *b);
size_t BufferLength(node::Buffer *b);

char *BufferData(v8::Local<v8::Object> buf_obj);
size_t BufferLength(v8::Local<v8::Object> buf_obj);


#endif // buffer_compat_h
Something went wrong with that request. Please try again.