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

NAME

	ReadChunkRecords -- read record elements from the current chunk into
a buffer. (V36)

SYNOPSIS

	actual = ReadChunkRecords(iff, buf, bytesPerRecord, numRecords);
D0 A0 A1 D0 D1
LONG ReadChunkRecords(struct IFFHandle *, APTR, LONG, LONG);

FUNCTION

	Reads records from the current chunk into buffer. Truncates attempts
to read past end of chunk (only whole records are read; remaining
bytes that are not of a whole record size are left unread and
available for ReadChunkBytes()).

INPUTS

	iff - pointer to IFFHandle structure.
buf - pointer to buffer area to receive data.
bytesPerRecord - size of data records to read.
numRecords - number of data records to read.

RESULT

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

SEE ALSO

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

The Silents

SCX
TSL
ATX
PDX

Comments:

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