Regular API function
simTransformBuffer / sim.transformBuffer
Description
|
Modified a buffer than contains packed data. See also the data packing/unpacking functions. |
C/C++ synopsis
|
|
C/C++ parameters |
|
C/C++ return value
|
|
Lua synopsis
|
1) buffer outBuffer=sim.transformBuffer(buffer inBuffer,int inFormat,float multiplier,float offset,int outFormat)
2) buffer[] outBuffer=sim.transformBuffer(buffer inBuffer,sim.buffer_uint8,0,int splitSize,sim.buffer_split)
|
Lua parameters |
inBuffer: the input buffer that contains packed data.
multiplier: a multiplier value. We have out=offset+multiplier*in
offset/splitSize: an offset or split size value. We have out=offset+multiplier*in
outFormat: the desired buffer type for the returned buffer.
|
Lua return values
|
1) outBuffer: the modified buffer
2) outBuffer: the various split buffers
|
Python synopsis
|
1) bytes outBuffer=sim.transformBuffer(bytes inBuffer,int inFormat,float multiplier,float offset,int outFormat)
2) list outBuffer=sim.transformBuffer(bytes inBuffer,sim.buffer_uint8,0,int splitSize,sim.buffer_split)
|
|