docs: public static FixedBucketsHistogram fromByteBuffer(ByteBuffer buf)
    {
      byte serializationVersion = buf.get();
      Preconditions.checkArgument(
          serializationVersion == SERIALIZATION_VERSION,
          StringUtils.format("Only serialization version %s is supported.", SERIALIZATION_VERSION)
      );
      byte mode = buf.get();
      if (mode == FULL_ENCODING_MODE) {
        return fromByteBufferFullNoSerdeHeader(buf);
      } else if (mode == SPARSE_ENCODING_MODE) {
        return fromBytesSparse(buf);
      } else {
        throw new ISE("Invalid histogram serde mode: %s", mode);
      }
    }