public void send(byte[] buf, int off, int siz) throws IOException {
    int bufamt = buf.length - off;
    pgOutput.write(buf, off, bufamt < siz ? bufamt : siz);
    for (int i = bufamt; i < siz; ++i) {
      pgOutput.write(0);
    }
  }
public void send ( byte [ ] buf , int off , int siz ) throws IOException { int bufamt = buf . length - off ; pgOutput . write ( buf , off , bufamt < siz ? bufamt : siz ) ; for ( int i = bufamt ; i < siz ; ++ i ) { pgOutput . write ( 0 ) ; } }
Send a fixed-size array of bytes to the backend. If {@code length < siz}, pad with zeros. If
{@code length > siz}, truncate the array.

@param buf the array of bytes to be sent
@param off offset in the array to start sending from
@param siz the number of bytes to be sent
@throws IOException if an I/O error occurs