public void Save(IProtocolBuffer buffer) { Count = BufferUtils.SwapUInt16(Count); Index = BufferUtils.SwapUInt16(Index); }
public void Write(uint value) { value = BufferUtils.SwapUInt32(value); byte[] data = BitConverter.GetBytes(value); Write(data); }