in core/src/main/java/com/epam/cme/mdp3/sbe/message/SbeMessage.java [97:116]
public boolean getGroup(final int tagId, final MdpGroup mdpGroup) {
final MutableMdpGroup mutableMdpGroup = (MutableMdpGroup) mdpGroup;
int groupOffset = SbeConstants.HEADER_SIZE + getBlockLength();
for (final SbeGroupType groupType : messageType.getMetadataContainer().allGroups()) {
this.buffer().position(groupOffset);
final int blockLength = this.buffer().getUInt16();
this.buffer().position(groupOffset + groupType.getNumInGroupOffset());
final int numInGroup = this.buffer().getUInt8();
if (groupType.getGroupType().getId() == tagId) {
mutableMdpGroup.reset(this.buffer(), groupType, blockLength, numInGroup, groupOffset + groupType.getDimensionBlockLength());
return true;
} else {
groupOffset = groupOffset + groupType.getDimensionBlockLength() + blockLength * numInGroup;
}
}
return false;
}