Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 850 → Rev 851

/trunk/javasrc/codec/org/etsi/its/codec/ItsCodecImpl.java
170,7 → 170,7
*/
protected CharstringValue decodeCharstringValue(final Type decodingHypothesis, DecodingContext decodingContext) {
_logger.entering(this.toString(), "decodeCharstringValue", decodingHypothesis.getName());
int length = ByteHelper.byteArrayToInt(decodingContext.getNextBytes(Integer.SIZE / Byte.SIZE));
int length = ByteHelper.byteArrayToInt(decodingContext.getNextBytes(Byte.SIZE/8));
return decodeCharstringValue(decodingContext, length * Byte.SIZE, decodingHypothesis);
} // End of method decodeCharstringValue
 
/trunk/javasrc/codec/org/etsi/its/codec/ttcn/LibItsIpv6OverGeoNetworking_TypesAndValues/LibItsIpv6OverGeoNetworking_TypesAndValuesCodec.java
433,8 → 433,6
return (RecordOfValue)decodeProtocolLayer(recordOfValue.getType(), decodingContext);
}
// And process it
decodingContext.getNextByte(); // Skip Type
decodingContext.getNextBytes(2); // Skip Length (2 bytes)
switch (type) {
case AcGn6InterfaceInfoList:
// Protocol message
665,6 → 663,7
RecordOfValue recordofValue = (RecordOfValue)decodingHypothesis.newInstance();
if (decodingHypothesis.getName().equals("PrefixInfoList")) { // FIXME Use TypeEnum...
// Protocol message
//TODO check next prefix 0x03
while (!decodingContext.isEndOfBufferReached()) { // Decode message
Value fieldValue = decodeProtocolLayer(recordofValue.getElementType(), decodingContext);
recordofValue.appendField(fieldValue);
671,7 → 670,7
}
} else {
// Read # of items
recordofValue.setLength(ByteHelper.byteArrayToInt(decodingContext.getNextBytes(Integer.SIZE / Byte.SIZE)));
recordofValue.setLength(ByteHelper.byteArrayToInt(decodingContext.getNextBytes(Byte.SIZE/8)));
// Decode items
for (int i = 0, n = recordofValue.getLength(); i < n; i++) {
Value fieldValue = decodeProtocolLayer(recordofValue.getField(i).getType(), decodingContext);