public AmfWriter() { memory = new MemoryStream(); writer = new EndianBinaryWriter(EndianBitConverter.Big, memory); }