ifc_raw_media_reader.h 574 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <bfc/dispatch.h>
  3. #include <bfc/error.h>
  4. class ifc_raw_media_reader : public Dispatchable
  5. {
  6. protected:
  7. ifc_raw_media_reader() {}
  8. ~ifc_raw_media_reader() {}
  9. public:
  10. int Read(void *buffer, size_t buffer_size, size_t *bytes_read);
  11. /* TODO: we'll probably need stuff in here like EndOfFile, determining a good buffer size, etc */
  12. DISPATCH_CODES
  13. {
  14. RAW_READ
  15. };
  16. };
  17. inline int ifc_raw_media_reader::Read(void *buffer, size_t buffer_size, size_t *bytes_read)
  18. {
  19. return _call(RAW_READ, (int)NErr_NotImplemented, buffer, buffer_size, bytes_read);
  20. }