|
|
|
@ -21,8 +21,7 @@ public class FileList extends Payload {
|
|
|
|
|
if (RequestResponseCode.fromCode(datagram[RequestResponseCode.RRCODE_POSITION]) != RequestResponseCode.LIST_RESPONSE) {
|
|
|
|
|
throw new InternalError();
|
|
|
|
|
}
|
|
|
|
|
int size = (datagram[PAYLOAD_SIZE_POSITON] << (8*3)) | (datagram[PAYLOAD_SIZE_POSITON+1] << (8*2)) | (datagram[PAYLOAD_SIZE_POSITON+2] << 8) | datagram[PAYLOAD_SIZE_POSITON+3];
|
|
|
|
|
|
|
|
|
|
int size = getPayloadSize(datagram);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** To datagram with padding */
|
|
|
|
@ -34,9 +33,7 @@ public class FileList extends Payload {
|
|
|
|
|
// bits 16-31 are reserved for future use
|
|
|
|
|
//TODO size
|
|
|
|
|
int size = ;
|
|
|
|
|
for(i=0;i<4;i++) {
|
|
|
|
|
datagram[Payload.PAYLOAD_SIZE_POSITON + i] = (byte) (size >> (8 * (3 - i)) & 0xFF);
|
|
|
|
|
}
|
|
|
|
|
datagram = setPayloadSize(size, datagram);
|
|
|
|
|
//TODO content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|