18#ifndef _DECAF_INTERNAL_NIO_BUFFERFACTORY_H_
19#define _DECAF_INTERNAL_NIO_BUFFERFACTORY_H_
83 unsigned char* buffer,
int size,
int offset,
int length );
Factory class used by static methods in the decaf::nio package to create the various default version ...
Definition BufferFactory.h:41
static decaf::nio::LongBuffer * createLongBuffer(std::vector< long long > &buffer)
Wraps the passed STL Long Vector in a LongBuffer.
static decaf::nio::LongBuffer * createLongBuffer(long long *buffer, int size, int offset, int length)
Wraps the passed buffer with a new LongBuffer.
static decaf::nio::CharBuffer * createCharBuffer(char *buffer, int size, int offset, int length)
Wraps the passed buffer with a new CharBuffer.
static decaf::nio::CharBuffer * createCharBuffer(std::vector< char > &buffer)
Wraps the passed STL Byte Vector in a CharBuffer.
virtual ~BufferFactory()
Definition BufferFactory.h:44
static decaf::nio::DoubleBuffer * createDoubleBuffer(double *buffer, int size, int offset, int length)
Wraps the passed buffer with a new DoubleBuffer.
static decaf::nio::IntBuffer * createIntBuffer(int *buffer, int size, int offset, int length)
Wraps the passed buffer with a new IntBuffer.
static decaf::nio::FloatBuffer * createFloatBuffer(int capacity)
Allocates a new float buffer whose position will be zero its limit will be its capacity and its mark ...
static decaf::nio::FloatBuffer * createFloatBuffer(float *buffer, int size, int offset, int length)
Wraps the passed buffer with a new FloatBuffer.
static decaf::nio::DoubleBuffer * createDoubleBuffer(int capacity)
Allocates a new double buffer whose position will be zero its limit will be its capacity and its mark...
static decaf::nio::DoubleBuffer * createDoubleBuffer(std::vector< double > &buffer)
Wraps the passed STL Double Vector in a DoubleBuffer.
static decaf::nio::ByteBuffer * createByteBuffer(std::vector< unsigned char > &buffer)
Wraps the passed STL Byte Vector in a ByteBuffer.
static decaf::nio::ByteBuffer * createByteBuffer(unsigned char *buffer, int size, int offset, int length)
Wraps the passed buffer with a new ByteBuffer.
static decaf::nio::ShortBuffer * createShortBuffer(short *buffer, int size, int offset, int length)
Wraps the passed buffer with a new ShortBuffer.
static decaf::nio::CharBuffer * createCharBuffer(int capacity)
Allocates a new char buffer whose position will be zero its limit will be its capacity and its mark i...
static decaf::nio::ShortBuffer * createShortBuffer(int capacity)
Allocates a new short buffer whose position will be zero its limit will be its capacity and its mark ...
static decaf::nio::ByteBuffer * createByteBuffer(int capacity)
Allocates a new byte buffer whose position will be zero its limit will be its capacity and its mark i...
static decaf::nio::ShortBuffer * createShortBuffer(std::vector< short > &buffer)
Wraps the passed STL Short Vector in a ShortBuffer.
static decaf::nio::IntBuffer * createIntBuffer(int capacity)
Allocates a new int buffer whose position will be zero its limit will be its capacity and its mark is...
static decaf::nio::IntBuffer * createIntBuffer(std::vector< int > &buffer)
Wraps the passed STL int Vector in a IntBuffer.
static decaf::nio::FloatBuffer * createFloatBuffer(std::vector< float > &buffer)
Wraps the passed STL Float Vector in a FloatBuffer.
static decaf::nio::LongBuffer * createLongBuffer(int capacity)
Allocates a new long long buffer whose position will be zero its limit will be its capacity and its m...
This class defines six categories of operations upon byte buffers:
Definition ByteBuffer.h:98
This class defines four categories of operations upon character buffers:
Definition CharBuffer.h:68
This class defines four categories of operations upon double buffers:
Definition DoubleBuffer.h:53
This class defines four categories of operations upon float buffers:
Definition FloatBuffer.h:51
This class defines four categories of operations upon int buffers:
Definition IntBuffer.h:51
This class defines four categories of operations upon long long buffers:
Definition LongBuffer.h:51
This class defines four categories of operations upon short buffers:
Definition ShortBuffer.h:51
#define DECAF_API
Definition Config.h:29
Definition BufferFactory.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25