SemysCreateDataBuffer

01 Allocates a SemysDataBuffer with given amount of memory.
02

SemysDataBuffer *SemysCreateDataBuffer(uint32 size);

03 Parameters:
  • size: The amount of bytes to allocate for the data buffer.
04 Return Values:
The allocated SemysDataBuffer with given amount of memory referenced or 0 if failed.
05 The function makes two allocations; One for the SemysDataBuffer structure and one for the buffer itself. It is thus possible to detach the allocated buffer if required and leave the structure with a zero reference behind. A later deallocation of the structure will leave the buffer untouched in this case.
06 Reference: SemysTransporter.h
Implementation: Semys Library
See Also: Transporter Sub-System, SemysDestroyDataBuffer()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.