code: @Override
      public void write(byte[] buffer, int offset, int length) throws IOException {
          checkWritePrimitiveTypes();
          primitiveTypes.write(buffer, offset, length);
      }
docs: Writes {@code count} bytes from the byte array {@code buffer} starting at
  offset {@code index} to the target stream. Blocks until all bytes are
  written.
  
  @param buffer
  the buffer to write.
  @param offset
  the index of the first byte in {@code buffer} to write.
  @param length
  the number of bytes from {@code buffer} to write to the output
  stream.
  @throws IOException
  if an error occurs while writing to the target stream.