private FetchMarkerResult createErrorMarkerResult(final String feedName,
                                                      final String streamTypeName,
                                                      final SegmentInputStream segmentInputStream,
                                                      final SourceLocation sourceLocation,
                                                      final Set<String> availableChildStreamTypes,
                                                      final Severity... expandedSeverities) throws IOException {
        List<Marker> markersList;

        // Get the appropriate encoding for the stream type. No child type as this is error strm
        final String encoding = feedProperties.getEncoding(feedName, streamTypeName, null);

        // Include all segments.
        segmentInputStream.includeAll();

        // Get the data from the stream.
        final Reader reader = new InputStreamReader(segmentInputStream, Charset.forName(encoding));

        // Combine markers into a list.
        markersList = new MarkerListCreator().createFullList(reader, expandedSeverities);

        // Create a list just for the request.
        long pageOffset = sourceLocation.getRecordIndex();
        if (pageOffset >= markersList.size()) {
            pageOffset = markersList.size() - 1;
        }
        final long max = pageOffset + SourceLocation.MAX_ERRORS_PER_PAGE;
        final long totalResults = markersList.size();
        final List<Marker> resultList = new ArrayList<>();

        for (long i = pageOffset; i < max && i < totalResults; i++) {
            resultList.add(markersList.get((int) i));
        }

        final String classification = feedProperties.getDisplayClassification(feedName);
        final OffsetRange itemRange = new OffsetRange(
                sourceLocation.getRecordIndex(),
                (long) resultList.size());
        final Count<Long> totalItemCount = new Count<>(totalResults, true);
        final Count<Long> totalCharCount = new Count<>(0L, true);

        return new FetchMarkerResult(
                feedName,
                streamTypeName,
                classification,
                sourceLocation,
                itemRange,
                totalItemCount,
                totalCharCount,
                availableChildStreamTypes,
                new ArrayList<>(resultList),
                DisplayMode.MARKER,
                null);
    }
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