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 » ReadChunkBytes

NAME

	ReadChunkBytes -- read bytes from the current chunk into a buffer.
(V36)

SYNOPSIS

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

FUNCTION

	Reads the IFFHandle stream into the buffer for the specified number
of bytes. Reads are limited to the size of the current chunk and
attempts to read past the end of the chunk will truncate. This
function returns positive number of bytes read or a negative error
code.

INPUTS

	iff - pointer to IFFHandle structure.
buf - pointer to buffer area to receive data.
numBytes - number of bytes to read.

RESULT

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

SEE ALSO

ReadChunkRecords(), ParseIFF(), WriteChunkBytes(), <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:

Anthrox

SNT
SCX
ATX
AYS

Comments:

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