SHIP:Sail:bufPut

From Serious Documentation
Revision as of 09:49, 12 October 2016 by CarltonHeyer (talk | contribs)
Jump to: navigation, search
Function Returns Introduced Description
bufPut Integer v5.1.0 Stores data into a buffer.

See Also:

Prototype

Integer bufPut(Buffer buf[,Integer offset[,DataType var[, ...]]]);

Parameters/Return Value

Parameter Data Type Description
buf Buffer Buffer to use
offset Integer Offset into the buffer
var DataType Object to store data from
Return Integer number of bytes.

Detailed Description

Stores data into a buffer from the designated object of type DataType. The data will be stored as the datatype specified from the object it received it from.


Examples

Example Result Notes
bufPut(infoBuf, 30, strEg1); 30
bufPut(splashBuf, 0, intEg1); 100