Sync with 5.4.2
[deliverable/titan.core.git] / core / Octetstring.cc
index 55c0090fb24b1a81807c537b9f8f6d97344116a9..18daa773a688b592e8c114d5fe4776c98f475bac 100644 (file)
@@ -752,6 +752,15 @@ int OCTETSTRING::RAW_encode_negtest_raw(RAW_enc_tree& p_myleaf) const
   p_myleaf.body.leaf.data_ptr = val_ptr->octets_ptr;
   return p_myleaf.length = val_ptr->n_octets * 8;
 }
+
+int OCTETSTRING::JSON_encode_negtest_raw(JSON_Tokenizer& p_tok) const
+{
+  if (val_ptr != NULL) {
+    p_tok.put_raw_data((const char*)val_ptr->octets_ptr, val_ptr->n_octets);
+    return val_ptr->n_octets;
+  }
+  return 0;
+}
 #endif
 
 boolean OCTETSTRING::BER_decode_TLV(const TTCN_Typedescriptor_t& p_td,
This page took 0.02609 seconds and 5 git commands to generate.