private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws Exception { for (int i = questionCount; i > 0; i --) { response.addRecord(DnsSection.QUESTION, recordDecoder.decodeQuestion(buf)); } }
private void decodeRecords( DnsResponse response, DnsSection section, ByteBuf buf, int count) throws Exception { for (int i = count; i > 0; i --) { final DnsRecord r = recordDecoder.decodeRecord(buf); if (r == null) { // Truncated response break; } response.addRecord(section, r); } } }
private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws Exception { for (int i = questionCount; i > 0; i --) { response.addRecord(DnsSection.QUESTION, recordDecoder.decodeQuestion(buf)); } }
private void decodeRecords( DnsResponse response, DnsSection section, ByteBuf buf, int count) throws Exception { for (int i = count; i > 0; i --) { final DnsRecord r = recordDecoder.decodeRecord(buf); if (r == null) { // Truncated response break; } response.addRecord(section, r); } } }
private void decodeRecords( DnsResponse response, DnsSection section, ByteBuf buf, int count) throws Exception { for (int i = count; i > 0; i --) { final DnsRecord r = recordDecoder.decodeRecord(buf); if (r == null) { // Truncated response break; } response.addRecord(section, r); } } }
private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws Exception { for (int i = questionCount; i > 0; i --) { response.addRecord(DnsSection.QUESTION, recordDecoder.decodeQuestion(buf)); } }
private void decodeRecords( DnsResponse response, DnsSection section, ByteBuf buf, int count) throws Exception { for (int i = count; i > 0; i --) { final DnsRecord r = recordDecoder.decodeRecord(buf); if (r == null) { // Truncated response break; } response.addRecord(section, r); } } }
private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws Exception { for (int i = questionCount; i > 0; i --) { response.addRecord(DnsSection.QUESTION, recordDecoder.decodeQuestion(buf)); } }
private void decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) throws Exception { for (int i = questionCount; i > 0; i --) { response.addRecord(DnsSection.QUESTION, recordDecoder.decodeQuestion(buf)); } }
private void decodeRecords( DnsResponse response, DnsSection section, ByteBuf buf, int count) throws Exception { for (int i = count; i > 0; i --) { final DnsRecord r = recordDecoder.decodeRecord(buf); if (r == null) { // Truncated response break; } response.addRecord(section, r); } } }