System.IO.BACnet.BacnetPipeTransport.Write C# (CSharp) Méthode

Write() public méthode

public Write ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
Résultat void
        public void Write(byte[] buffer, int offset, int length)
        {
            if (!m_conn.IsConnected) return;
            try
            {
                //doing syncronous writes (to an Asynchronous pipe) seems to be a bad thing
                m_conn.BeginWrite(buffer, offset, length, (r) => { m_conn.EndWrite(r); }, null);
            }
            catch (System.IO.IOException)
            {
                Disconnect();
            }
        }