private RawResult getNonSegmentedData(final SourceLocation sourceLocation,
                                          final SegmentInputStream segmentInputStream,
                                          final String encoding,
                                          final DisplayMode displayMode,
                                          final boolean limitChars) throws IOException {

        final RawResult rawResult = switch (displayMode) {
            case TEXT -> extractDataRange(
                    sourceLocation,
                    segmentInputStream,
                    encoding,
                    segmentInputStream.size(),
                    limitChars);
            case HEX -> extractDataRangeAsHex(
                    sourceLocation,
                    segmentInputStream,
                    encoding,
                    segmentInputStream.size(),
                    DataType.NON_SEGMENTED);
            default -> throw new IllegalArgumentException("Unexpected display mode " + displayMode);
        };

        // Non-segmented data exists within parts so set the item info
        rawResult.setItemRange(new OffsetRange(sourceLocation.getPartIndex(), 1L));
        rawResult.setTotalItemCount(Count.of(partCount, true));
        return rawResult;
    }
How big our buffers are. This should always be a multiple of 8.
stroom-data/stroom-data-store-impl/src/main/java/stroom/data/store/impl/DataFetcher.java