src/main/java/xyz/issc/daca/spec/CodeBook.java
public int calcPayloadLen(Code code) {
        int len = 0;
        AttrSegment[] attrSegs = code.getAttrSegments();
        for (AttrSegment attrSeg : attrSegs) {
            len += attrSeg.getParseLen() * attrSeg.getLen();
        }
        return len;
    }
/**
     * effective when is headless or invariant
     * @param code
     * @return
     */
effective when is headless or invariant
@param code
@return
effective when is headless or invariant @param code @return
public int calcPayloadLen(Code code) {
        int len = 0;
        AttrSegment[] attrSegs = code.getAttrSegments();
        for (AttrSegment attrSeg : attrSegs) {
            len += attrSeg.getParseLen() * attrSeg.getLen();
        }
        return len;
    }
public int calcPayloadLen ( Code code ) { int len = 0 ; AttrSegment [ ] attrSegs = code . getAttrSegments ( ) ; for ( AttrSegment attrSeg : attrSegs ) { len += attrSeg . getParseLen ( ) * attrSeg . getLen ( ) ; } return len ; }
effective when is headless or invariant
 @param code
 @return
effective when is headless or invariant @param code @return