FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kTar_WriteFile ( kTar  tar,
const kChar itemPath,
kStream  stream,
k64u  fileSize 
)

Adds a file to the tar archive by reading the file contents from a source stream.

This convenience method can be used instead of the combination of kTar_BeginWrite and streaming operations.

Parameters
tarkTar object.
itemPathRelative path of the item in the kTar object.
streamSource stream.
fileSizeSize of the item.
Returns
Operation status.