public byte[] ToConfiguration() { var writer = new ByteBufferWriter(); writer.WriteVUInt32((_signed ? 1u : 0) + (Flags ? 2u : 0) + 4u * (uint)Names.Length); foreach (var name in Names) { writer.WriteString(name); } foreach (var value in Values) { if (_signed) { writer.WriteVInt64((long)value); } else { writer.WriteVUInt64(value); } } return(writer.Data.ToByteArray()); }