5 PeekAsync( _REG( a0
) AsyncFile
*file
, _REG( a1
) APTR buffer
, _REG( d0
) LONG numBytes
)
7 #ifdef ASIO_NOEXTERNALS
8 struct ExecBase
*SysBase
= file
->af_SysBase
;
11 /* Try to fill a new buffer, if needed */
12 if( !file
->af_BytesLeft
)
16 if( ( bytes
= ReadAsync( file
, &bytes
, 1 ) ) <= 0 )
26 /* Copy what we can */
27 numBytes
= MIN( numBytes
, file
->af_BytesLeft
);
28 CopyMem( file
->af_Offset
, buffer
, numBytes
);