#include "kobjects.h"
#include "kerror.h"
Defines | |
| #define | KBOX_HEADER_LEN 4 |
| Header lenght. | |
| #define | KBox_addVar(pBox, var) KBox_addDatas (pBox, &var, sizeof (var)) |
| Adds the given data to the box structure. | |
| #define | KBox_addString(pBox, sStr, iLen) KBox_addDatas (pBox, sStr, sizeof (KChar) * iLen) |
| Adds string data to the box structure. | |
| #define | KBox_toPKUChar(pBox, pBytes) _KBox_toPKUChar (pBox, pBytes, knull) |
| Converts the box in a bytes stream. | |
Functions | |
| KTL_API KBox * | KBox_create (KChar aHeader[KBOX_HEADER_LEN]) |
| Creates a KBox structure. | |
| KTL_API KBool | KBox_setHeader (KBox *pBox, KChar aHeader[KBOX_HEADER_LEN]) |
| Sets a header for a box. | |
| KTL_API KBool | KBox_setDatas (KBox *pBox, KUChar *pDatas, KUInt32 iBytes) |
| Affects the given data to the box. | |
| KTL_API KBool | KBox_addDatas (KBox *pBox, KCPtr pDatas, KUInt32 iBytes) |
| Adds the given data to the box structure. | |
| KTL_API KBool | KBox_insertDatas (KBox *pBox, KPtr pDatas, KUInt32 iBytes, KUInt32 iPos) |
| Inserts the given data to the box structure. | |
| KTL_API KBool | KBox_copyDatas (KBox *pBox, KUChar *pDatas, KUInt32 iBytes) |
| Copies the pointed data to the box structure. | |
| KTL_API KUChar * | KBox_getDatas (KBox *pBox, KUInt32 *iBytes) |
| Gets the data pointer field of a box structure. | |
| KTL_API KUChar * | KBox_cloneDatas (KBox *pBox, KUInt32 *iBytes) |
| Gets a copy of the data pointer field of a box structure. | |
| KTL_API KBool | KBox_addSubBox (KBox *pBox, KBox *pSubBox) |
| Adds a sub box to the box structure. | |
| KTL_API KBool | KBox_insertSubBox (KBox *pBox, KBox *pSubBox, KUInt32 iIndex) |
| Inserts a sub box to the box structure. | |
| KTL_API KBool | KBox_replaceSubBox (KBox *pBox, KBox *pSubBox, KUInt32 iIndex) |
| Replaces a sub box in the box structure. | |
| KTL_API KBox * | KBox_getSubBox (KBox *pBox, KUInt32 iIndex) |
| Gets a sub box to the box structure. | |
| KTL_API KUInt32 | KBox_getSubBoxCount (KBox *pBox) |
| Gets the number of sub box in a box structure. | |
| KTL_API KUInt32 | KBox_getBytes (KBox *pBox) |
| Gets the size in bytes of a box structure. | |
| KTL_API KUChar * | _KBox_toPKUChar (KBox *pBox, KUInt32 *pBytes, KUChar *pCurrentStream) |
| Converts the box in a bytes stream. | |
|
|
Adds string data to the box structure. Copies only the number of bytes specified as parameter. Updates the data size.
|
|
|
Adds the given data to the box structure. Updates the data size.
|
|
|
Header lenght. In character... |
|
|
Converts the box in a bytes stream.
|
|
||||||||||||||||
|
Converts the box in a bytes stream.
|
|
||||||||||||||||
|
Adds the given data to the box structure. Copies only the number of bytes specified as parameter. Updates the data size.
|
|
||||||||||||
|
Adds a sub box to the box structure.
|
|
||||||||||||
|
Gets a copy of the data pointer field of a box structure. The returned pointer must be deleted
|
|
||||||||||||||||
|
Copies the pointed data to the box structure. Copies only the number of bytes specified as parameter.
|
|
|
Creates a KBox structure.
|
|
|
Gets the size in bytes of a box structure. This size includes both the data size and the sub boxes size. This size do not include the header box size.
|
|
||||||||||||
|
Gets the data pointer field of a box structure. The returned pointer must not be deleted
|
|
||||||||||||
|
Gets a sub box to the box structure.
|
|
|
Gets the number of sub box in a box structure.
|
|
||||||||||||||||||||
|
Inserts the given data to the box structure. Copies only the number of bytes specified as parameter at the position also specified. If the box data field is too small then the function returns kfalse. The data size of the box is not updating.
|
|
||||||||||||||||
|
Inserts a sub box to the box structure.
|
|
||||||||||||||||
|
Replaces a sub box in the box structure.
|
|
||||||||||||||||
|
Affects the given data to the box. Copies only the data pointer. Updates the data size.
|
|
||||||||||||
|
Sets a header for a box.
|
1.3.8