public Transport_address(byte[] in) { transportaddress = new byte[in.length]; transportaddress = in; byte[] tmpUint2 = new byte[2]; tmpUint2[0] = in[0]; tmpUint2[1] = in[1]; UInt32 family = new UInt32(); value_i = family.UInt32ToInt(tmpUint2); byte[] add = new byte[in.length - 2]; for (int i = 0, j = 2; j < in.length; i++) { add[i] = in[j]; } value_os = new Octet_String(add); }
public ThreeGPP_3G_Cell_ID(byte[] in) { threegpp_3g_cell_id = new byte[in.length]; threegpp_3g_cell_id = in; byte[] tmp1 = new byte[3]; byte[] tmp2 = new byte[4]; for (int i = 0; i < 3; i++) { tmp1[i] = in[i]; } for (int i = 3, j = 0; i < in.length; i++, j++) { tmp2[j] = in[i]; } Octet os = new Octet(tmp1); plmn_ID = new PLMN_ID(os); UInt32 val = new UInt32(); val.setValue(tmp2); cell_ID = new CELL_ID(val); }
public CELL_ID(UInt32 uint) { value = uint.UInt32ToInt(uint.getValue()); cellID = new byte[uint.getValue().length]; cellID = uint.getValue(); }