20#include FT_INTERNAL_STREAM_H
21#include FT_INTERNAL_DEBUG_H
31#define FT_COMPONENT trace_stream
68 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
78 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
96 return FT_THROW( Invalid_Stream_Operation );
131 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
134 return FT_THROW( Invalid_Stream_Operation );
153 " invalid read; expected %lu bytes, got %lu\n",
222#ifdef FT_DEBUG_MEMORY
254 " frame size (%lu) larger than stream size (%lu)\n",
261#ifdef FT_DEBUG_MEMORY
278 " invalid read; expected %lu bytes, got %lu\n",
295 " invalid i/o; pos = 0x%lx, count = %lu, size = 0x%lx\n",
331#ifdef FT_DEBUG_MEMORY
481 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
526 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
570 FT_ERROR((
"FT_Stream_ReadUShortLE:"
571 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
616 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
661 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
706 " invalid i/o; pos = 0x%lx, size = 0x%lx\n",
724 return FT_THROW( Invalid_Argument );
727 return FT_THROW( Invalid_Stream_Handle );
823 value = (
FT_ULong)( (FT_Int32)( value << sign_shift ) >> sign_shift );
839 *(FT_UInt32*)
p = (FT_UInt32)
value;
853 if ( frame_accessed )
#define FT_ASSERT(condition)
#define FT_ERROR(varformat)
ft_mem_qalloc(FT_Memory memory, FT_Long size, FT_Error *p_error)
ft_mem_free(FT_Memory memory, const void *P)
#define FT_QALLOC(ptr, size)
#define FT_MEM_COPY(dest, source, count)
FT_Stream_ReadFields(FT_Stream stream, const FT_Frame_Field *fields, void *structure)
FT_Stream_ReadUShortLE(FT_Stream stream, FT_Error *error)
FT_Stream_GetUOffset(FT_Stream stream)
FT_Stream_ReadULongLE(FT_Stream stream, FT_Error *error)
FT_Stream_TryRead(FT_Stream stream, FT_Byte *buffer, FT_ULong count)
FT_Stream_Close(FT_Stream stream)
FT_Stream_ReadChar(FT_Stream stream, FT_Error *error)
FT_Stream_ReadAt(FT_Stream stream, FT_ULong pos, FT_Byte *buffer, FT_ULong count)
FT_Stream_EnterFrame(FT_Stream stream, FT_ULong count)
FT_Stream_GetULongLE(FT_Stream stream)
FT_Stream_ExtractFrame(FT_Stream stream, FT_ULong count, FT_Byte **pbytes)
FT_Stream_ExitFrame(FT_Stream stream)
FT_Stream_GetChar(FT_Stream stream)
FT_Stream_ReadUOffset(FT_Stream stream, FT_Error *error)
FT_Stream_Pos(FT_Stream stream)
FT_Stream_Read(FT_Stream stream, FT_Byte *buffer, FT_ULong count)
FT_Stream_ReadULong(FT_Stream stream, FT_Error *error)
FT_Stream_ReleaseFrame(FT_Stream stream, FT_Byte **pbytes)
FT_Stream_GetUShortLE(FT_Stream stream)
FT_Stream_Seek(FT_Stream stream, FT_ULong pos)
FT_Stream_GetUShort(FT_Stream stream)
FT_Stream_OpenMemory(FT_Stream stream, const FT_Byte *base, FT_ULong size)
FT_Stream_GetULong(FT_Stream stream)
FT_Stream_Skip(FT_Stream stream, FT_Long distance)
FT_Stream_ReadUShort(FT_Stream stream, FT_Error *error)
#define FT_NEXT_ULONG_LE(buffer)
#define FT_NEXT_USHORT_LE(buffer)
#define FT_FRAME_OP_SIGNED
#define FT_NEXT_USHORT(buffer)
#define FT_NEXT_UOFF3_LE(buffer)
#define FT_NEXT_UOFF3(buffer)
#define FT_NEXT_ULONG(buffer)
#define FT_NEXT_BYTE(buffer)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLuint GLuint GLsizei count
GLsizei GLsizei GLfloat distance
static char memory[1024 *256]
static BOOL read_bytes(parse_buffer *buf, LPVOID data, DWORD size)