google / google/emboss

FR: Add CopyBytesFrom for array types

Open
#207 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.