endurox-java
 All Classes Namespaces Files Functions Variables Groups Pages
Functions
Fast adding field to UBF

Functions

native void org.endurox.TypedUbf.Baddfast (int bfldid, short s, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, long l, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, byte c, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, float f, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, double d, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, String s, BFldLocInfo next_fld)
 
native void org.endurox.TypedUbf.Baddfast (int bfldid, byte[]b, BFldLocInfo next_fld)
 

Detailed Description

Fast add field to UBF buffer. This function is used when series of the same field occurrences are added to buffer. This saves a pointer to last buffer offset where data is finished to add. Thus next add operation will continue from that position. This greatly increases the buffer population speed. Between calls, no modifications shall be done to buffer, otherwise that might results in corrupted UBF buffer. When adding first field in the batch, then BFldLocInfo must be reset. Either by creating new object or explicitly calling reset() method on the object.

Parameters
bfldidcompiled field id
Exceptions
UbfBALIGNERRExceptionInvalid Buffer
UbfBNOTFLDExceptionInvalid Buffer
UbfBNOSPACEExceptionNo space in buffer

Function Documentation

native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
short  s,
BFldLocInfo  next_fld 
)

Add short value to UBF buffer

Parameters
bfldidcompiled field id
sshort value
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
long  l,
BFldLocInfo  next_fld 
)

Add long value to UBF

Parameters
bfldidcompiled field id
llong value
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
byte  c,
BFldLocInfo  next_fld 
)

Add byte (ANSI Char) to UBF

Parameters
bfldidcompiled field id
cANSI char value / Java byte
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
float  f,
BFldLocInfo  next_fld 
)

Set float value to buffer

Parameters
bfldidcompiled field id
ffloat value
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
double  d,
BFldLocInfo  next_fld 
)

Set Double value to buffer

Parameters
bfldidfield id
ddouble value
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
String  s,
BFldLocInfo  next_fld 
)

Add string to UBF buffer

Parameters
bfldidfield id
sString value
next_fldstorage for last field added pointer.
native void org.endurox.TypedUbf.Baddfast ( int  bfldid,
byte[]  b,
BFldLocInfo  next_fld 
)

Add byte array to UBF buffer

Parameters
bfldidfield id
bbyte array
next_fldstorage for last field added pointer.