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.

35 lines
734 B

  1. /*
  2. * d16out.c
  3. *
  4. * Outputting for 16-bit decoder
  5. */
  6. #include "decoder.h"
  7. void NEAR copy_data_to_output(
  8. t_decoder_context * context,
  9. long amount,
  10. const byte * data
  11. )
  12. {
  13. /*
  14. * Save pages before we transform
  15. *
  16. * Don't save pages if amount < CHUNK_SIZE, because that
  17. * means that this is our last chunk of data ever.
  18. * This will save a few page writes at the end.
  19. */
  20. if (amount >= CHUNK_SIZE)
  21. DComp_Save_Output_Pages(context, (uint) amount);
  22. /* perform jump translation */
  23. if (context->dec_current_file_size)
  24. {
  25. decoder_translate_e8(
  26. context,
  27. context->dec_output_buffer,
  28. amount
  29. );
  30. }
  31. }