public override ByteBuffer ToBufferRaw(ByteBuffer buffer = null) { buffer = buffer ?? new ByteBuffer(ByteBuffer.LITTLE_ENDING); Fee.ToBuffer(buffer); Payer.ToBuffer(buffer); Player.ToBuffer(buffer); Tournament.ToBuffer(buffer); BuyIn.ToBuffer(buffer); buffer.WriteArray(Extensions, (b, item) => { if (!item.IsNull()) { ; } }); // todo return(buffer); }