code: public final void readToEntry(byte[] buffer, T t) {
          if (buffer == null) {
              throw new InvalidArgument("buffer", buffer);
          } else if (t == null) {
              throw new InvalidArgument("cannot read a null entry");
          } else if (buffer.length != recordSize) {
              final String fmt = "invalid buffer (%d bytes, expected %d)";
              final String msg = format(fmt, buffer.length, recordSize);
              throw new InvalidArgument(msg);
          }
          readTo(buffer, t);
      }
docs: Reads {@code <T>} to the provided {@code buffer}.
  
  @param buffer {@code byte[]}; of size {@link #getRecordSize()}
  @param t {@code <T>}
  @throws InvalidArgument Thrown if either argument is null or if
  {@code buffer} is invalid