mirror of https://github.com/ksherlock/afp.git
finder_info::set_data
This commit is contained in:
parent
0e9c8616f3
commit
c033b872ed
|
@ -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);
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue