File Information
Library: JS/Core
Package: Wrappers
Header: Poco/JS/Core/BufferWrapper.h
Description
JavaScript wrapper for Poco::Buffer<char>.
Inheritance
Direct Base Classes: Wrapper
All Base Classes: Wrapper
Member Summary
Member Functions: calculatePackBufferSize, concat, construct, constructor, decode, decodeString, encode, encodeString, fromBase64, fromBase64URL, fromHexBinary, getAt, getCapacity, getLength, isBuffer, makeString, objectTemplate, pack, pop, push, readDoubleBE, readDoubleLE, readFloatBE, readFloatLE, readInt16BE, readInt16LE, readInt32BE, readInt32LE, readInt64BE, readInt64LE, readInt8, readUInt16BE, readUInt16LE, readUInt32BE, readUInt32LE, readUInt64BE, readUInt64LE, readUInt8, setAt, setCapacity, setLength, slice, toBase64, toBase64URL, toHexBinary, unpack, writeDoubleBE, writeDoubleLE, writeFloatBE, writeFloatLE, writeInt16BE, writeInt16LE, writeInt32BE, writeInt32LE, writeInt64BE, writeInt64LE, writeInt8, writeUInt16BE, writeUInt16LE, writeUInt32BE, writeUInt32LE, writeUInt64BE, writeUInt64LE, writeUInt8
Inherited Functions: checkSetResult, isWrapper, objectTemplate, reportEmptySetResult, returnException, returnString, safeUnwrapNative, toString, toV8Internalized, toV8String, unwrapNative, unwrapNativeObject, wrapNative, wrapNativePersistent
Types Aliases
Buffer
using Buffer = Poco::Buffer < char >;
Constructors
BufferWrapper
Creates the BufferWrapper.
Destructor
~BufferWrapper
~BufferWrapper();
Destroys the BufferWrapper.
Member Functions
constructor
v8::Handle < v8::FunctionTemplate > constructor(
v8::Isolate * pIsolate
);
Creates and returns a V8 FunctionTemplate for the constructor function.
decode
static void decode(
const v8::FunctionCallbackInfo < v8::Value > & args,
const std::string & encoding
);
decode
static void decode(
const v8::FunctionCallbackInfo < v8::Value > & args,
const char * pBytes,
std::size_t size,
const std::string & encoding
);
encode
static void encode(
v8::Isolate * pIsolate,
Buffer * pBuffer,
const v8::Local < v8::Value > & str,
const std::string & encoding
);
isBuffer
static void isBuffer(
const v8::FunctionCallbackInfo < v8::Value > & args
);
Checks whether the given argument is a Buffer.
objectTemplate
v8::Handle < v8::ObjectTemplate > objectTemplate(
v8::Isolate * pIsolate
);
calculatePackBufferSize
static std::size_t calculatePackBufferSize(
const std::string & format
);
concat
static void concat(
const v8::FunctionCallbackInfo < v8::Value > & args
);
construct
static void construct(
const v8::FunctionCallbackInfo < v8::Value > & args
);
decodeString
static void decodeString(
const v8::FunctionCallbackInfo < v8::Value > & args
);
encodeString
static void encodeString(
const v8::FunctionCallbackInfo < v8::Value > & args
);
fromBase64
static void fromBase64(
const v8::FunctionCallbackInfo < v8::Value > & args
);
fromBase64URL
static void fromBase64URL(
const v8::FunctionCallbackInfo < v8::Value > & args
);
fromHexBinary
static void fromHexBinary(
const v8::FunctionCallbackInfo < v8::Value > & args
);
getAt
static void getAt(
uint32_t index,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getCapacity
static void getCapacity(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getLength
static void getLength(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
makeString
static void makeString(
const v8::FunctionCallbackInfo < v8::Value > & args
);
pack
static void pack(
const v8::FunctionCallbackInfo < v8::Value > & args
);
pop
static void pop(
const v8::FunctionCallbackInfo < v8::Value > & args
);
push
static void push(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readDoubleBE
static void readDoubleBE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readDoubleLE
static void readDoubleLE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readFloatBE
static void readFloatBE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readFloatLE
static void readFloatLE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt16BE
static void readInt16BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt16LE
static void readInt16LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt32BE
static void readInt32BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt32LE
static void readInt32LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt64BE
static void readInt64BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt64LE
static void readInt64LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readInt8
static void readInt8(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt16BE
static void readUInt16BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt16LE
static void readUInt16LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt32BE
static void readUInt32BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt32LE
static void readUInt32LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt64BE
static void readUInt64BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt64LE
static void readUInt64LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
readUInt8
static void readUInt8(
const v8::FunctionCallbackInfo < v8::Value > & args
);
setAt
static void setAt(
uint32_t index,
v8::Local < v8::Value > value,
const v8::PropertyCallbackInfo < v8::Value > & info
);
setCapacity
static void setCapacity(
v8::Local < v8::String > name,
v8::Local < v8::Value > value,
const v8::PropertyCallbackInfo < void > & info
);
setLength
static void setLength(
v8::Local < v8::String > name,
v8::Local < v8::Value > value,
const v8::PropertyCallbackInfo < void > & info
);
slice
static void slice(
const v8::FunctionCallbackInfo < v8::Value > & args
);
toBase64
static void toBase64(
const v8::FunctionCallbackInfo < v8::Value > & args
);
toBase64URL
static void toBase64URL(
const v8::FunctionCallbackInfo < v8::Value > & args
);
toHexBinary
static void toHexBinary(
const v8::FunctionCallbackInfo < v8::Value > & args
);
unpack
static void unpack(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeDoubleBE
static void writeDoubleBE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeDoubleLE
static void writeDoubleLE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeFloatBE
static void writeFloatBE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeFloatLE
static void writeFloatLE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt16BE
static void writeInt16BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt16LE
static void writeInt16LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt32BE
static void writeInt32BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt32LE
static void writeInt32LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt64BE
static void writeInt64BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt64LE
static void writeInt64LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeInt8
static void writeInt8(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt16BE
static void writeUInt16BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt16LE
static void writeUInt16LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt32BE
static void writeUInt32BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt32LE
static void writeUInt32LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt64BE
static void writeUInt64BE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt64LE
static void writeUInt64LE(
const v8::FunctionCallbackInfo < v8::Value > & args
);
writeUInt8
static void writeUInt8(
const v8::FunctionCallbackInfo < v8::Value > & args
);
Variables
ENCODING_ASCII
static const std::string ENCODING_ASCII;
ENCODING_BASE64
static const std::string ENCODING_BASE64;
ENCODING_BASE64URL
static const std::string ENCODING_BASE64URL;
ENCODING_HEXBIN
static const std::string ENCODING_HEXBIN;
ENCODING_UTF16
static const std::string ENCODING_UTF16;
ENCODING_UTF8
static const std::string ENCODING_UTF8;