public void Serialize(Serialzer s) { s.PushUint(_magicCode); s.PushUint(_version); SerializeName.Serialize(s, _name); byte[] reserved = new byte[88]; s.PushData(reserved); }
static public void Serialize(Serialzer s, string name) { s.PushData(System.Text.Encoding.Default.GetBytes(name)); for (int i = 0; i < 32 - name.Length; i++) { s.PushByte(0); } }