Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 09:39:17

0001 #pragma once
0002 
0003 #include <cstdint>
0004 #include <fstream>
0005 #include <iostream>
0006 
0007 class file_stream {
0008 private:
0009     std::ifstream file;
0010     std::streampos current_head;
0011     std::streampos end;
0012     int current_percent;
0013     
0014     uint32_t num_fpgas;
0015 
0016 public:
0017     file_stream(const char *fname, uint32_t num_fpgas);
0018     ~file_stream();
0019 
0020     int read_packet(uint8_t *buffer);
0021     void print_packet_numbers();
0022 };