mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
refactor(flac): use byte_buffer::append()
This commit is contained in:
parent
a9351e6e08
commit
cdf2e59fe2
@ -301,8 +301,7 @@ class flac_block_compressor final : public block_compressor::impl {
|
||||
std::string hdrbuf;
|
||||
CompactSerializer::serialize(hdr, &hdrbuf);
|
||||
|
||||
compressed.resize(pos + hdrbuf.size());
|
||||
::memcpy(compressed.data() + pos, hdrbuf.data(), hdrbuf.size());
|
||||
compressed.append(hdrbuf.data(), hdrbuf.size());
|
||||
}
|
||||
|
||||
dwarfs_flac_stream_encoder encoder(compressed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user