finder_info::set_data

This commit is contained in:
Kelvin Sherlock 2023-08-18 12:48:10 -04:00
parent 0e9c8616f3
commit c033b872ed
2 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,8 @@ namespace afp {
}
#endif
void set_data(const uint8_t *data, unsigned length=32);
void set_prodos_file_type(uint16_t);
void set_prodos_file_type(uint16_t, uint32_t);

View File

@ -817,4 +817,8 @@ void finder_info::set_creator_type(uint32_t x) {
_finder_info[7] = x >> 0;
}
void finder_info::set_data(const uint8_t *data, unsigned length) {
memcpy(_finder_info, data, std::min(32u, length));
}
}