OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftstream.h */ | 3 /* ftstream.h */ |
4 /* */ | 4 /* */ |
5 /* Stream handling (specification). */ | 5 /* Stream handling (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2002, 2004-2006, 2011 by */ | 7 /* Copyright 1996-2002, 2004-2006, 2011 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 | 454 |
455 /* read a byte from a stream */ | 455 /* read a byte from a stream */ |
456 FT_BASE( FT_Char ) | 456 FT_BASE( FT_Char ) |
457 FT_Stream_ReadChar( FT_Stream stream, | 457 FT_Stream_ReadChar( FT_Stream stream, |
458 FT_Error* error ); | 458 FT_Error* error ); |
459 | 459 |
460 /* read a 16-bit big-endian unsigned integer from a stream */ | 460 /* read a 16-bit big-endian unsigned integer from a stream */ |
461 FT_BASE( FT_UShort ) | 461 FT_BASE( FT_UShort ) |
462 FT_Stream_ReadUShort( FT_Stream stream, | 462 FT_Stream_ReadUShort( FT_Stream stream, |
463 FT_Error* error ); | 463 FT_Error* error ); |
464 | 464 |
465 /* read a 24-bit big-endian unsigned integer from a stream */ | 465 /* read a 24-bit big-endian unsigned integer from a stream */ |
466 FT_BASE( FT_ULong ) | 466 FT_BASE( FT_ULong ) |
467 FT_Stream_ReadUOffset( FT_Stream stream, | 467 FT_Stream_ReadUOffset( FT_Stream stream, |
468 FT_Error* error ); | 468 FT_Error* error ); |
469 | 469 |
470 /* read a 32-bit big-endian integer from a stream */ | 470 /* read a 32-bit big-endian integer from a stream */ |
471 FT_BASE( FT_ULong ) | 471 FT_BASE( FT_ULong ) |
472 FT_Stream_ReadULong( FT_Stream stream, | 472 FT_Stream_ReadULong( FT_Stream stream, |
473 FT_Error* error ); | 473 FT_Error* error ); |
474 | 474 |
475 /* read a 16-bit little-endian unsigned integer from a stream */ | 475 /* read a 16-bit little-endian unsigned integer from a stream */ |
476 FT_BASE( FT_UShort ) | 476 FT_BASE( FT_UShort ) |
477 FT_Stream_ReadUShortLE( FT_Stream stream, | 477 FT_Stream_ReadUShortLE( FT_Stream stream, |
478 FT_Error* error ); | 478 FT_Error* error ); |
479 | 479 |
480 /* read a 32-bit little-endian unsigned integer from a stream */ | 480 /* read a 32-bit little-endian unsigned integer from a stream */ |
481 FT_BASE( FT_ULong ) | 481 FT_BASE( FT_ULong ) |
482 FT_Stream_ReadULongLE( FT_Stream stream, | 482 FT_Stream_ReadULongLE( FT_Stream stream, |
483 FT_Error* error ); | 483 FT_Error* error ); |
484 | 484 |
485 /* Read a structure from a stream. The structure must be described */ | 485 /* Read a structure from a stream. The structure must be described */ |
486 /* by an array of FT_Frame_Field records. */ | 486 /* by an array of FT_Frame_Field records. */ |
487 FT_BASE( FT_Error ) | 487 FT_BASE( FT_Error ) |
488 FT_Stream_ReadFields( FT_Stream stream, | 488 FT_Stream_ReadFields( FT_Stream stream, |
489 const FT_Frame_Field* fields, | 489 const FT_Frame_Field* fields, |
490 void* structure ); | 490 void* structure ); |
491 | 491 |
492 | 492 |
493 #define FT_STREAM_POS() \ | 493 #define FT_STREAM_POS() \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 FT_DEBUG_INNER( FT_Stream_ReleaseFrame( stream, \ | 530 FT_DEBUG_INNER( FT_Stream_ReleaseFrame( stream, \ |
531 (FT_Byte**)&(bytes) ) ) | 531 (FT_Byte**)&(bytes) ) ) |
532 | 532 |
533 | 533 |
534 FT_END_HEADER | 534 FT_END_HEADER |
535 | 535 |
536 #endif /* __FTSTREAM_H__ */ | 536 #endif /* __FTSTREAM_H__ */ |
537 | 537 |
538 | 538 |
539 /* END */ | 539 /* END */ |
OLD | NEW |