private void flush(final boolean iContinue) throws IOException {
    channel.beginRequest();
    try {
      channel.out.writeInt(pos);
      if (pos > 0) {
        channel.out.write(buffer, 0, pos);
        pos = 0;
      }
      channel.out.writeByte(iContinue ? 1 : 0);

    } finally {
      channel.endRequest();
    }
  }
 public OChannelBinaryOutputStream(final OChannelBinaryAsynchClient channel) {
   this.channel = channel;
   buffer = channel.getBuffer();
 }