Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  1. /****************************************************************************
  2. Unit Bufio; Interface
  3. *****************************************************************************
  4. Bufio implements the structured reading of the imput stream. As such, it
  5. will handle the necessary byte-swapping that must occur when reading a
  6. native Macintosh file.
  7. This interface will also shield the calling application from knowledge of
  8. the source format (file vs. memory).
  9. Module Prefix: IO
  10. *****************************************************************************/
  11. /*********************** Exported Function Definitions **********************/
  12. void IOGetByte( Byte far * );
  13. /* Retrieves an 8-bit unsigned char from the input stream */
  14. void IOSkipBytes( LongInt byteCount );
  15. /* Skip the designated number of bytes */
  16. void IOAlignToWordOffset( void );
  17. /* Align next memory read to Word boundary. */
  18. void IOSetFileName( StringLPtr pictFileName );
  19. /* Interface routine to set the source filename */
  20. void IOSetFileHandleAndSize( Integer pictFileHandle, LongInt pictFileSize );
  21. /* Interface routine to set the source file Handle */
  22. void IOSetMemoryHandle( HANDLE pictMemoryHandle );
  23. /* Interface routine to set the source file Handle */
  24. void IOSetReadOffset( LongInt readOffset );
  25. /* Set the beginning offset to seek to when the file is opened */
  26. void IOOpenPicture( Handle dialog );
  27. /* Open the input stream set by a previous IOSet___ interface routine. */
  28. void IOClosePicture( void );
  29. /* Close the source input stream */
  30. void IOUpdateStatus( void );
  31. /* Update the status bar dialog to reflect current progress */
  32.