public void Encode(OtpOutputStream buf) { buf.WriteMapHead(Arity); foreach (var pair in this) { buf.WriteAny(pair.Key); buf.WriteAny(pair.Value); } }