n_cst_unicode_hash_long.sru 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $PBExportHeader$n_cst_unicode_hash_long.sru
  2. forward
  3. global type n_cst_unicode_hash_long from n_cst_hash_blob
  4. end type
  5. end forward
  6. global type n_cst_unicode_hash_long from n_cst_hash_blob
  7. end type
  8. global n_cst_unicode_hash_long n_cst_unicode_hash_long
  9. type variables
  10. end variables
  11. forward prototypes
  12. public function integer of_set_value (readonly blob ab_key, unsignedlong al_value)
  13. public function ulong of_get_value (readonly blob ab_key)
  14. end prototypes
  15. public function integer of_set_value (readonly blob ab_key, unsignedlong al_value);integer li_ret = 1
  16. n_cst_unicode_hash_long_entry lnvo_cur_entry
  17. lnvo_cur_entry = event ue_get_hash_entry(ab_key)
  18. if not isnull(lnvo_cur_entry) then
  19. lnvo_cur_entry.il_value = al_value
  20. else
  21. li_ret = -1
  22. end if
  23. return li_ret
  24. end function
  25. public function ulong of_get_value (readonly blob ab_key);integer li_ret
  26. n_cst_unicode_hash_long_entry lnvo_cur_entry
  27. lnvo_cur_entry = of_find_hash_entry(ab_key)
  28. if not isnull(lnvo_cur_entry) then
  29. li_ret = lnvo_cur_entry.il_value
  30. else
  31. setnull(li_ret)
  32. end if
  33. return li_ret
  34. end function
  35. on n_cst_unicode_hash_long.create
  36. call super::create
  37. end on
  38. on n_cst_unicode_hash_long.destroy
  39. call super::destroy
  40. end on
  41. event ue_create_entry;call super::ue_create_entry;n_cst_unicode_hash_long_entry lnvo_entry
  42. lnvo_entry = create n_cst_unicode_hash_long_entry
  43. return lnvo_entry
  44. end event