Rev

Rev 2230 | Details | Compare with Previous | Last modification | View Log | SVN | Bug Tracker

Rev Author Line No. Line
2005 garciay 1
package org.etsi.ttcn.codec.its.uppertester;
2
 
3
import org.etsi.common.ByteHelper;
4
import org.etsi.ttcn.codec.CodecBuffer;
5
import org.etsi.ttcn.codec.MainCodec;
6
import org.etsi.ttcn.tci.RecordValue;
7
import org.etsi.ttcn.tci.Type;
8
 
9
public class UtEventInd extends UtRecord {
10
 
11
        public UtEventInd(MainCodec mainCodec) {
12
                super(mainCodec);
13
        }
14
 
15
    @Override
16
    protected void preDecodeField(String fieldName, CodecBuffer buf, Type decodingHypothesis, RecordValue rv) {
17
        int length = ByteHelper.byteArrayToInt(buf.readBytes(Short.SIZE / Byte.SIZE));
2655 filatov 18
        mainCodec.setHint(decodingHypothesis.getName() + "Len", Integer.toString(length));
2005 garciay 19
    }
20
 
21
}