MCPcopy Create free account
hub / github.com/JayXon/Leanify / UpdateTagLength

Method UpdateTagLength

formats/swf.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253
254
255void Swf::UpdateTagLength(uint8_t *tag_content, size_t header_length, size_t new_length)
256{
257 if (header_length == 6)
258 {
259 *(uint32_t *)(tag_content - 4) = new_length;
260 }
261 else
262 {
263 *(tag_content - 2) += (new_length & 0x3F) - (*(tag_content - 2) & 0x3F);
264 }
265}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected