MCPcopy Create free account
hub / github.com/Tencent/libpag / writeBytes

Method writeBytes

src/codec/utils/EncodeStream.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void EncodeStream::writeBytes(EncodeStream* stream, uint32_t length, uint32_t offset) {
126 if (stream->_length <= offset) {
127 return;
128 }
129 if (length == 0) {
130 length = static_cast<uint32_t>(stream->_length) - offset;
131 }
132 writeBytes(stream->bytes, length, offset);
133}
134
135void EncodeStream::writeBytes(uint8_t* stream, uint32_t length, uint32_t offset) {
136 if (checkCapacity(length)) {

Callers 11

EncodeMethod · 0.80
WriteTagHeaderFunction · 0.80
WriteTagBlockFunction · 0.80
WriteBlockFunction · 0.80
WriteMdatBoxFunction · 0.80
ConcatMP4Function · 0.80
writeH264NalusMethod · 0.80
avccMethod · 0.80
WriteMp4HeaderFunction · 0.80
WriteDashesFunction · 0.80

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected