Poco::JS::Core

class BufferWrapper

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, getAt, getCapacity, getLength, isBuffer, makeString, objectTemplate, pack, pop, push, setAt, setCapacity, setLength, slice, toBase64, unpack

Inherited Functions: isWrapper, objectTemplate, returnException, returnString, safeUnwrapNative, toString, unwrapNative, unwrapNativeObject, wrapNative, wrapNativePersistent

Types

Buffer

typedef Poco::Buffer < char > Buffer;

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.

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
);

decode protected static

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

decodeString protected static

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

encode protected static

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

encodeString protected static

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

fromBase64 protected static

static void fromBase64(
    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
);

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
);

unpack protected static

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

Variables

ENCODING_ASCII protected static

static const std::string ENCODING_ASCII;

ENCODING_BASE64 protected static

static const std::string ENCODING_BASE64;

ENCODING_UTF16 protected static

static const std::string ENCODING_UTF16;

ENCODING_UTF8 protected static

static const std::string ENCODING_UTF8;

Securely control IoT edge devices from anywhere   Connect a Device