/// <summary> /// Retrieves the contents of the specified |resourceId| nearest the scale /// factor |scaleFactor|. Use a |scaleFactor| value of SCALE_FACTOR_NONE for /// scale independent resources or call GetDataResource instead. If the value /// is found then |data| and |dataSize| will be populated and this function /// will return true (1). If the value is not found then this function will /// return false (0). The returned |data| pointer will remain resident in /// memory and should not be freed. Include cef_pack_resources.h for a listing /// of valid resource ID values. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_resource_bundle_capi.h">cef/include/capi/cef_resource_bundle_capi.h</see>. /// </remarks> public bool GetDataResourceForScale(int resourceId, CfxScaleFactor scaleFactor, out IntPtr data, out ulong dataSize) { UIntPtr dataSize_tmp = UIntPtr.Zero; var __retval = CfxApi.ResourceBundle.cfx_resource_bundle_get_data_resource_for_scale(NativePtr, resourceId, (int)scaleFactor, out data, out dataSize_tmp); dataSize = (ulong)dataSize_tmp; return(0 != __retval); }
/// <summary> /// Retrieves the contents of the specified |resourceId| nearest the scale /// factor |scaleFactor|. Use a |scaleFactor| value of SCALE_FACTOR_NONE for /// scale independent resources or call GetDataResource instead. If the value /// is found then |data| and |dataSize| will be populated and this function /// will return true (1). If the value is not found then this function will /// return false (0). The returned |data| pointer will remain resident in /// memory and should not be freed. Include cef_pack_resources.h for a listing /// of valid resource ID values. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_resource_bundle_capi.h">cef/include/capi/cef_resource_bundle_capi.h</see>. /// </remarks> public bool GetDataResourceForScale(int resourceId, CfxScaleFactor scaleFactor, RemotePtr data, ulong dataSize) { var call = new CfxResourceBundleGetDataResourceForScaleRemoteCall(); call.@this = RemotePtr.ptr; call.resourceId = resourceId; call.scaleFactor = (int)scaleFactor; call.RequestExecution(RemotePtr.connection); data = new RemotePtr(connection, call.data); dataSize = call.dataSize; return(call.__retval); }
/// <summary> /// Retrieves the contents of the specified |resourceId| nearest the scale /// factor |scaleFactor|. Use a |scaleFactor| value of SCALE_FACTOR_NONE for /// scale independent resources or call GetDataResource instead. If the value /// is found then |data| and |dataSize| will be populated and this function /// will return true (1). If the value is not found then this function will /// return false (0). The returned |data| pointer will remain resident in /// memory and should not be freed. Include cef_pack_resources.h for a listing /// of valid resource ID values. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_resource_bundle_capi.h">cef/include/capi/cef_resource_bundle_capi.h</see>. /// </remarks> public bool GetDataResourceForScale(int resourceId, CfxScaleFactor scaleFactor, out IntPtr data, out int dataSize) { return(0 != CfxApi.cfx_resource_bundle_get_data_resource_for_scale(NativePtr, resourceId, (int)scaleFactor, out data, out dataSize)); }
/// <summary> /// Retrieves the contents of the specified |resourceId| nearest the scale /// factor |scaleFactor|. Use a |scaleFactor| value of SCALE_FACTOR_NONE for /// scale independent resources or call GetDataResource instead. If the value /// is found then |data| and |dataSize| will be populated and this function /// will return true (1). If the value is not found then this function will /// return false (0). The returned |data| pointer will remain resident in /// memory and should not be freed. Include cef_pack_resources.h for a listing /// of valid resource ID values. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_resource_bundle_capi.h">cef/include/capi/cef_resource_bundle_capi.h</see>. /// </remarks> public bool GetDataResourceForScale(int resourceId, CfxScaleFactor scaleFactor, out IntPtr data, out int dataSize) { return 0 != CfxApi.cfx_resource_bundle_get_data_resource_for_scale(NativePtr, resourceId, (int)scaleFactor, out data, out dataSize); }