LAPICALL WriteObject(LDB db, LID id, byte* data, unsigned long size);

Writes the contents of a byte array to an object.

db specifies the current database. id specifies the current object. data specifies the address of the byte array. size specifies the number of bytes to write.