public static void CopyStdStringList(IntPtr stdStringList, System.Collections.Generic.List <string> outputList) { int listCount; Cef3Binder.GetListCount(2, stdStringList, out listCount); for (int i = 0; i < listCount; ++i) { JsValue value = new JsValue(); Cef3Binder.GetListElement(2, stdStringList, i, ref value); outputList.Add(CopyStringAndDestroyNativeSide(ref value)); } }
public static void CopyStdInt64ListAndDestroyNativeSide(IntPtr stdInt64List, System.Collections.Generic.List <long> outputList) { int listCount; Cef3Binder.GetListCount(1, stdInt64List, out listCount); for (int i = 0; i < listCount; ++i) { JsValue value = new JsValue(); Cef3Binder.GetListElement(1, stdInt64List, i, ref value); outputList.Add(value.I64); } Cef3Binder.MyCefDeletePtr(stdInt64List); }