X13.Periphery.TWIDriver.RawDevice.Poll C# (CSharp) Method

Poll() public method

public Poll ( byte &buf ) : bool
buf byte
return bool
      public override bool Poll(out byte[] buf) {
        if(_snd) {
          _snd=false;
          if(_sa.value!=null) {
            var tmp=_sa.value.GetBytes();
            if(tmp!=null && tmp.Length>2) {
              buf=new byte[tmp.Length+1];
              buf[0]=_addr;
              Buffer.BlockCopy(tmp, 0, buf, 1, tmp.Length);
              return true;
            }
          }
        }
        buf=null;
        return false;
      }