a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 iffparse.library
  AllocIFF
  AllocLocalItem
  CloseClipboard
  CloseIFF
  CollectionChunk
  CollectionChunks
  CurrentChunk
  EntryHandler
  ExitHandler
  FindCollection
  FindLocalItem
  FindProp
  FindPropContext
  FreeIFF
  FreeLocalItem
  GoodID
  GoodType
  IDtoStr
  InitIFF
  InitIFFasClip
  InitIFFasDOS
  LocalItemData
  OpenClipboard
  OpenIFF
  ParentChunk
  ParseIFF
  PopChunk
  PropChunk
  PropChunks
  PushChunk
  ReadChunkBytes
  ReadChunkRecords
  SetLocalItemPurge
  StopChunk
  StopChunks
  StopOnExit
  StoreItemInContext
  StoreLocalItem
  WriteChunkBytes
  WriteChunkRecords
Include
GuruMeditation
Docs » Autodocs » iffparse.library » WriteChunkBytes

NAME

	WriteChunkBytes -- write data from a buffer into the current chunk.
(V36)

SYNOPSIS

	error = WriteChunkBytes(iff, buf, numBytes);
D0 A0 A1 D0
LONG WriteChunkBytes(struct IFFHandle *, APTR, LONG);

FUNCTION

	Writes "numBytes" bytes from the specified buffer into the current
chunk. If the current chunk was pushed with IFFSIZE_UNKNOWN, the size
of the chunk gets increased by the size of the buffer written. If
the size was specified for this chunk, attempts to write past the end
of the chunk will be truncated.

INPUTS

	iff - pointer to IFFHandle structure.
buf - pointer to buffer area with bytes to be written.
numBytes - number of bytes to write.

RESULT

	error - (positive) number of bytes written if successful or a
(negative) IFFERR_#? error code if unsuccessful.

SEE ALSO

PushChunk(), PopChunk(), WriteChunkRecords(), <libraries/iffparse.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Alpha Flight 1970

AFL
ANA
TBL
DJ

Comments:

$VER: d0.se 1.14 Copyright © 2011-2021 Tobias Geijersson support at d0 dot se