MCPcopy Create free account
hub / github.com/bigcat/ModbusDroid / createRequestGroups

Method createRequestGroups

src/com/serotonin/modbus4j/BatchRead.java:187–217  ·  view source on GitHub ↗

We aren't trying to do anything fancy here, like some kind of artificial optimal group for performance or anything. We pretty much just try to fit as many locators as possible into a single valid request, and then move on. This method assumes the locators have already been sorted by start offset.

(List<ReadFunctionGroup<K>> functionGroups, List<KeyedModbusLocator<K>> locators,
            int maxCount)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

doPartitionMethod · 0.95

Calls 4

addMethod · 0.80
getStartOffsetMethod · 0.45
getEndOffsetMethod · 0.45
getOffsetMethod · 0.45

Tested by

no test coverage detected