MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getSectionArray

Method getSectionArray

src/main/java/core/org/xbill/DNS/Message.java:343–349  ·  view source on GitHub ↗

Returns an array containing all records in the given section, or an empty array if the section is empty. @see Record @see Section

(int section)

Source from the content-addressed store, hash-verified

341 * @see Section
342 */
343public Record []
344getSectionArray(int section) {
345 if (sections[section] == null)
346 return emptyRecordArray;
347 List l = sections[section];
348 return (Record []) l.toArray(new Record[l.size()]);
349}
350
351private static boolean
352sameSet(Record r1, Record r2) {

Callers 6

doxfrMethod · 0.95
getOPTMethod · 0.95
getSectionRRsetsMethod · 0.95
sectionToStringMethod · 0.95
verifyMessageMethod · 0.80
addAdditional2Method · 0.80

Calls 2

toArrayMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected