read.h 614 B

123456789101112131415161718
  1. #pragma once
  2. #include <windows.h>
  3. #include <bfc/platform/types.h>
  4. #include "mkv_reader.h"
  5. struct ebml_node
  6. {
  7. uint64_t id;
  8. uint64_t size;
  9. };
  10. // returns bytes read. 0 means EOF
  11. uint64_t read_ebml_node(nsmkv::MKVReader *reader, ebml_node *node);
  12. uint64_t read_vint(nsmkv::MKVReader *reader, uint64_t *val);
  13. uint64_t read_utf8(nsmkv::MKVReader *reader, uint64_t size, char **utf8);
  14. uint64_t read_unsigned(nsmkv::MKVReader *reader, uint64_t size, uint64_t *val);
  15. uint64_t read_float(nsmkv::MKVReader *reader, uint64_t size, double *val);
  16. uint64_t read_signed(nsmkv::MKVReader *reader, uint64_t size, int64_t *val);