com.visioglobe.libVisioDevKit
Class VgBinaryBuffer

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by com.visioglobe.libVisioDevKit.VgBinaryBuffer

public class VgBinaryBuffer
extends VgReferenced

The VgBinaryBuffer class is used to manipulate binary data. A VgBinaryBuffer inherits from VgReferenced, so if it's correctly used (see documentation of VgRefPtr) it will be automatically deleted when it's no longer referenced (except if pVgBinaryBufferDoesDelete is false at its creation, as should be the case for static buffers).

Class:
VgEngine::VgBinaryBuffer
Date:
25/02/2010

Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgBinaryBuffer()
           
VgBinaryBuffer(byte[] pData)
           
VgBinaryBuffer(byte[] pData, boolean pVgBinaryBufferDoesDelete)
           
VgBinaryBuffer(long cPtr, boolean cMemoryOwn)
          Copy constructor.
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgBinaryBuffer obj)
           
 java.lang.String getData()
          Retrieves the buffer's data (const version).
 long getLength()
          Retrieves the buffer length.
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced
getCPtr, getNbReferences, ref, unref
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VgBinaryBuffer

public VgBinaryBuffer(long cPtr,
                      boolean cMemoryOwn)
Copy constructor.


VgBinaryBuffer

public VgBinaryBuffer()

VgBinaryBuffer

public VgBinaryBuffer(byte[] pData,
                      boolean pVgBinaryBufferDoesDelete)

VgBinaryBuffer

public VgBinaryBuffer(byte[] pData)
Method Detail

getCPtr

public static long getCPtr(VgBinaryBuffer obj)

finalize

protected void finalize()
Overrides:
finalize in class VgReferenced

delete

public void delete()
Overrides:
delete in class VgReferenced

getLength

public long getLength()
Retrieves the buffer length.


getData

public java.lang.String getData()
Retrieves the buffer's data (const version).


VisioDevKit 2.0, Visioglobe® 2013