equal
deleted
inserted
replaced
209 int decoding_len=0; |
209 int decoding_len=0; |
210 u_int i=0, j=0; |
210 u_int i=0, j=0; |
211 u_int len = block->data_length(); |
211 u_int len = block->data_length(); |
212 log_debug_p(LOG, "BPQBlock::initialise: len = %u", len); |
212 log_debug_p(LOG, "BPQBlock::initialise: len = %u", len); |
213 u_int num_frags; |
213 u_int num_frags; |
|
214 ASSERT ( block->data() != NULL ); |
214 u_char* buf = block->data(); |
215 u_char* buf = block->data(); |
215 log_debug_p(LOG, "BPQBlock::initialise: buf = %s", buf); |
216 //log_debug_p(LOG, "BPQBlock::initialise: buf = %s", buf); |
216 |
217 |
217 // BPQ-kind 1-byte |
218 // BPQ-kind 1-byte |
218 if ( i < len ) { |
219 if ( i < len ) { |
|
220 ASSERT ( buf[i] == 0 || buf[i] == 1 ); |
219 kind_ = (kind_t) buf[i++]; |
221 kind_ = (kind_t) buf[i++]; |
220 log_debug_p(LOG, "BPQBlock::initialise: kind = %d", kind_); |
222 log_debug_p(LOG, "BPQBlock::initialise: kind = %d", kind_); |
221 } |
223 } |
222 |
224 |
223 // matching rule type 1-byte |
225 // matching rule type 1-byte |