FR: Add CopyBytesFrom for array types
Open
c++ api
enhancement
good first issue
- Dominant language
- Python
- Stars
- 92
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
```struct FileHeader:
0 [+8] UInt:8[8] identification_pattern
```
Ideally I'd be able to:
```
pw::Result result =
MakeEmbossWriter(file_header_data);
if (!result.ok()) {
return;
}
emboss::FileHeaderWriter writer = result.value();
std::array identification_pattern_data = {0x62, 0x74, 0x73,
0x6E, 0x6F, 0x6F, 0x70, 0x00};
writer.identification_pattern().CopyBytesFrom(identification_pattern_data);
```
Contributor guide
Assessment
This issue has not been assessed yet.