public override void WriteBodyTo(ShockwaveWriter output) { const short HEADER_LENGTH = 92; output.Write(0); output.Write(0); output.Write(HEADER_LENGTH + Pool.GetBodySize()); output.Write(HEADER_LENGTH + Pool.GetBodySize()); output.Write(HEADER_LENGTH); output.Write(ScriptNumber); output.Write((short)Remnants.Dequeue()); output.WriteBE(-1); output.WriteBE(0); output.WriteBE((int)Remnants.Dequeue()); output.WriteBE(0); output.Write(Type); output.Write((int)Remnants.Dequeue()); output.Write(CastMemberRef); output.WriteBE((short)Remnants.Dequeue()); Pool.WriteTo(output); }
public override void WriteTo(ShockwaveWriter output) { Header.WriteTo(output); output.WriteBE(Offset); output.WriteBE((short)Flags); output.WriteBE(Unknown); output.WriteBE(Link); }
public override void WriteBodyTo(ShockwaveWriter output) { output.WriteBE(MemoryMapOffsets.Length); for (int i = 0; i < MemoryMapOffsets.Length; i++) { output.WriteBE(MemoryMapOffsets[i]); } output.WriteBE((int)Version); }
public override void WriteBodyTo(ShockwaveWriter output) { output.WriteBE(ENTRY_SIZE); output.WriteBE(ENTRY_SIZE); output.WriteBE(CastEntries?.Count ?? 0); output.WriteBE(CastEntries?.Count ?? 0); foreach (CastEntry entry in CastEntries) { entry.WriteTo(output); } }
public override void WriteTo(ShockwaveWriter output) { output.WriteBE((int)Kind); if (IsVariableLength) { output.WriteVarInt(Length); } else { output.WriteBE(Length); } }
public override void WriteTo(ShockwaveWriter output) { output.WriteVarInt(Id); output.WriteVarInt(Offset); output.WriteVarInt(Length); output.WriteVarInt(DecompressedLength); output.WriteVarInt(CompressionType); output.WriteBE((int)Header.Kind); }
public override void WriteBodyTo(ShockwaveWriter output) { output.WriteBE(MemoryMapOffsets.Length); for (int i = 0; i < MemoryMapOffsets.Length; i++) { output.WriteBE(MemoryMapOffsets[i]); } output.WriteBE((int)Version); output.WriteBE((short)0); output.WriteBE((short)0); output.WriteBE(0); output.WriteBE((int)Remnants.Dequeue()); }
public override void WriteBodyTo(ShockwaveWriter output) { output.WriteBE(ENTRIES_OFFSET); output.WriteBE(ENTRY_SIZE); output.WriteBE(Entries.Length); //TODO: I GUESS output.WriteBE(Entries.Length); output.WriteBE(LastJunkId); output.WriteBE((int)Remnants.Dequeue()); output.WriteBE(LastFreeId); foreach (var entry in Entries) { entry.WriteTo(output); } }
public override void WriteTo(ShockwaveWriter output) { output.WriteBE(Id); output.WriteBE(OwnerId); output.Write((int)Kind); }
public override void WriteTo(ShockwaveWriter output) { output.Write((int)Kind); output.WriteBE(Length); //TODO: VariableLength }