code: public void write_binary(final byte[] bin) {
          write1(OtpExternal.binTag);
          write4BE(bin.length);
          writeN(bin);
      }
docs: Write an array of bytes to the stream as an Erlang binary.
  
  @param bin
  the array of bytes to write.