メモリプールのサイズ取得

Namespace: fvalgcli
Assembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)

Syntax

C#
public static int fnFGA_get_memory_pool_size(
	ref SIZE_T bytes
)
Visual Basic
Public Shared Function fnFGA_get_memory_pool_size ( 
	ByRef bytes As SIZE_T
) As Integer

Parameters

bytes
Type: fvalgcli..::..SIZE_T%
メモリプールのサイズ (バイト単位) ※ メモリプールが終了されている場合や FGA ライブラリが未初期化の場合であっても本関数は正常終了し、 bytes には 0 が返されます。

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_PARAMパラメータ異常

Examples

C# Copy imageCopy
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        [FvPluginExecute]
        public void fnFGA_get_memory_pool_size()
        {
            int status = (int)f_err.F_ERR_NONE;

            try
            {
                SIZE_T bytes = 0;

                status = fga.fnFGA_get_memory_pool_size(ref bytes);
                if (status != (int)f_err.F_ERR_NONE)
                    throw new FvException(status);

                Console.WriteLine("fnFGA_get_memory_pool_size returned {0} bytes.", bytes);
            }
            finally
            {
            }
        }
    }
}

See Also