Poco::JS::Core

class BufferWrapper

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

BufferWrapper();

Creates the BufferWrapper.

Destructor

~BufferWrapper virtual

~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

static void decode(
    const v8::FunctionCallbackInfo < v8::Value > & args,
    const std::string & encoding
);

decode static

static void decode(
    const v8::FunctionCallbackInfo < v8::Value > & args,
    const char * pBytes,
    std::size_t size,
    const std::string & encoding
);

encode static

static void encode(
    v8::Isolate * pIsolate,
    Buffer * pBuffer,
    const v8::Local < v8::Value > & str,
    const std::string & encoding
);

isBuffer static

static void isBuffer(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

Checks whether the given argument is a Buffer.

objectTemplate virtual

v8::Handle < v8::ObjectTemplate > objectTemplate(
    v8::Isolate * pIsolate
);

calculatePackBufferSize protected static

static std::size_t calculatePackBufferSize(
    const std::string & format
);

concat protected static

static void concat(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

construct protected static

static void construct(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

decodeString protected static

static void decodeString(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

encodeString protected static

static void encodeString(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

fromBase64 protected static

static void fromBase64(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

fromBase64URL protected static

static void fromBase64URL(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

fromHexBinary protected static

static void fromHexBinary(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

getAt protected static

static void getAt(
    uint32_t index,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getCapacity protected static

static void getCapacity(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getLength protected static

static void getLength(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

makeString protected static

static void makeString(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

pack protected static

static void pack(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

pop protected static

static void pop(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

push protected static

static void push(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readDoubleBE protected static

static void readDoubleBE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readDoubleLE protected static

static void readDoubleLE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readFloatBE protected static

static void readFloatBE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readFloatLE protected static

static void readFloatLE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt16BE protected static

static void readInt16BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt16LE protected static

static void readInt16LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt32BE protected static

static void readInt32BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt32LE protected static

static void readInt32LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt64BE protected static

static void readInt64BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt64LE protected static

static void readInt64LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readInt8 protected static

static void readInt8(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt16BE protected static

static void readUInt16BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt16LE protected static

static void readUInt16LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt32BE protected static

static void readUInt32BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt32LE protected static

static void readUInt32LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt64BE protected static

static void readUInt64BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt64LE protected static

static void readUInt64LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

readUInt8 protected static

static void readUInt8(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

setAt protected static

static void setAt(
    uint32_t index,
    v8::Local < v8::Value > value,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

setCapacity protected static

static void setCapacity(
    v8::Local < v8::String > name,
    v8::Local < v8::Value > value,
    const v8::PropertyCallbackInfo < void > & info
);

setLength protected static

static void setLength(
    v8::Local < v8::String > name,
    v8::Local < v8::Value > value,
    const v8::PropertyCallbackInfo < void > & info
);

slice protected static

static void slice(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

toBase64 protected static

static void toBase64(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

toBase64URL protected static

static void toBase64URL(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

toHexBinary protected static

static void toHexBinary(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

unpack protected static

static void unpack(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeDoubleBE protected static

static void writeDoubleBE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeDoubleLE protected static

static void writeDoubleLE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeFloatBE protected static

static void writeFloatBE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeFloatLE protected static

static void writeFloatLE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt16BE protected static

static void writeInt16BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt16LE protected static

static void writeInt16LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt32BE protected static

static void writeInt32BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt32LE protected static

static void writeInt32LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt64BE protected static

static void writeInt64BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt64LE protected static

static void writeInt64LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeInt8 protected static

static void writeInt8(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt16BE protected static

static void writeUInt16BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt16LE protected static

static void writeUInt16LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt32BE protected static

static void writeUInt32BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt32LE protected static

static void writeUInt32LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt64BE protected static

static void writeUInt64BE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt64LE protected static

static void writeUInt64LE(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

writeUInt8 protected static

static void writeUInt8(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

Variables

ENCODING_ASCII static

static const std::string ENCODING_ASCII;

ENCODING_BASE64 static

static const std::string ENCODING_BASE64;

ENCODING_BASE64URL static

static const std::string ENCODING_BASE64URL;

ENCODING_HEXBIN static

static const std::string ENCODING_HEXBIN;

ENCODING_UTF16 static

static const std::string ENCODING_UTF16;

ENCODING_UTF8 static

static const std::string ENCODING_UTF8;

Securely control IoT edge devices from anywhere   Connect a Device