205206207208209210211212213214215
final Header hdr = method.getHeader(); if (hdr != null) { if(hdr.getDeliveryProperties() != null) { enc.writeStruct32(hdr.getDeliveryProperties()); } if(hdr.getMessageProperties() != null) { enc.writeStruct32(hdr.getMessageProperties()); }
209210211212213214215216217218219
{ enc.writeStruct32(hdr.getDeliveryProperties()); } if(hdr.getMessageProperties() != null) { enc.writeStruct32(hdr.getMessageProperties()); } if(hdr.getNonStandardProperties() != null) { for (Struct st : hdr.getNonStandardProperties()) {
215216217218219220221222223224225
} if(hdr.getNonStandardProperties() != null) { for (Struct st : hdr.getNonStandardProperties()) { enc.writeStruct32(st); } } } headerLimit = enc.position(); }
126127128129130131132133134135136
encoder.writeInt32(headers.length); for(Struct header : headers) { encoder.writeStruct32(header); } ByteBuffer buf = encoder.buffer(); return buf;
214215216217218219220221222223224
{ final Struct[] structs = hdr.getStructs(); for (Struct st : structs) { enc.writeStruct32(st); } } headerSeg = enc.segment(); }
213214215216217218219220221222223