Ejemplo n.º 1
0
        public void Destructor(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

                int _status = m_client.Invoke(0, 1, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Ejemplo n.º 2
0
        public SoftFX.Lrp.LPtr Constructor()
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                int _status = m_client.Invoke(0, 0, buffer);
                TypesSerializer.Throw(_status, buffer);

                var _result = buffer.ReadLocalPointer();
                return(_result);
            }
        }
Ejemplo n.º 3
0
        public void EncodeSlow(SoftFX.Lrp.LPtr handle, SoftFX.Extended.Quote[] quotes)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteQuoteArray(quotes);

                int _status = m_client.Invoke(0, 6, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Ejemplo n.º 4
0
        public long GetSize(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

                int _status = m_client.Invoke(0, 3, buffer);
                TypesSerializer.Throw(_status, buffer);

                var _result = buffer.ReadInt64();
                return(_result);
            }
        }
Ejemplo n.º 5
0
        public void EncodeFast(SoftFX.Lrp.LPtr handle, uint precision, double volumeStep, SoftFX.Extended.Quote[] quotes)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteUInt32(precision);
                buffer.WriteDouble(volumeStep);
                buffer.WriteQuoteArray(quotes);

                int _status = m_client.Invoke(0, 7, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }