CRIWARE for C#
Search Results for

    Show / Hide Table of Contents

    Class CriAtomExDbas

    AtomEx D-BAS ID.

    Inheritance
    object
    CriAtomExDbas
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CriWare
    Assembly: CriWare.CriAtom.dll
    Syntax
    public class CriAtomExDbas : IDisposable
    Remarks

    説明: CriAtomExDbas は、D-BAS管理用のIDです。 CriAtomExDbas(in Config) 関数でD-BASを作成すると取得できます。 アプリケーションがこのD-BAS IDを利用するのは、D-BASの破棄時のみです。

    Constructors

    CriAtomExDbas()

    デフォルト設定でのインスタンス作成

    Declaration
    public CriAtomExDbas()

    CriAtomExDbas(in Config)

    D-BASの作成

    Declaration
    • C#
    • C
    public CriAtomExDbas(in CriAtomExDbas.Config config)
    CriAtomExDbasId criAtomExDbas_Create_(CriAtomExDbasConfig *config, void *work, CriSint32 work_size)
    Parameters
    Type Name Description
    CriAtomExDbas.Config config

    D-BAS作成用コンフィグ構造体へのポインタ

    Remarks

    説明: D-BAS作成用パラメーターに基づいて、D-BASを作成します。 作成に成功すると、D-BASをライブラリに登録し、有効な管理用IDを返します。 D-BASの作成に失敗した場合、本関数は IllegalId を返します。 (エラーの原因はエラーコールバックに返されます。) 取得したIDはDispose() 関数で使用します。

    注意: 本関数を実行する前に、ライブラリを初期化しておく必要があります。

    See Also
    CalculateWorkSize(in Config)
    Dispose()

    Fields

    IllegalId

    AtomEx D-BAS ID.

    Declaration
    public const int IllegalId = -1
    Field Value
    Type Description
    int
    Remarks

    説明: CriAtomExDbas(in Config) 関数に失敗した際に返る値です。

    See Also
    CriAtomExDbas(in Config)
    Dispose()

    Properties

    NativeHandle

    ネイティブハンドル

    Declaration
    public int NativeHandle { get; }
    Property Value
    Type Description
    int

    Methods

    CalculateWorkSize(in Config)

    LE Pro

    D-BAS作成用ワークサイズの計算

    Declaration
    • C#
    • C
    public static int CalculateWorkSize(in CriAtomExDbas.Config config)
    CriSint32 criAtomExDbas_CalculateWorkSize_(CriAtomExDbasConfig *config)
    Parameters
    Type Name Description
    CriAtomExDbas.Config config

    D-BAS作成用コンフィグ構造体へのポインタ

    Returns
    Type Description
    int

    CriSint32 D-BAS作成用ワークサイズ

    Remarks

    説明: D-BAS作成用パラメーターに基づいて、D-BASの作成に必要ワークサイズを計算します。 ワーク領域サイズの計算に失敗すると、本関数は -1 を返します。 ワーク領域サイズの計算に失敗した理由については、エラーコールバックのメッセージで確認可能です。

    注意: ワーク領域のサイズはライブラリ初期化時( Initialize(in Config) 関数実行時) に指定したパラメーターによって変化します。 そのため、本関数を実行する前に、ライブラリを初期化しておく必要があります。

    See Also
    CriAtomExDbas(in Config)
    Initialize(in Config)

    Dispose()

    LE Pro

    D-BASの破棄

    Declaration
    • C#
    • C
    public void Dispose()
    void criAtomExDbas_Destroy_(CriAtomExDbasId atom_dbas_id)
    Remarks

    説明: CriAtomExDbas(in Config) 関数で取得した管理用IDを指定して、D-BASを破棄します。

    See Also
    CriAtomExDbas(in Config)

    GetStreamingPlayerHandles(IntPtr[], int)

    LE Pro

    ストリーム再生中のAtomプレーヤーハンドルを取得

    Declaration
    • C#
    • C
    public int GetStreamingPlayerHandles(IntPtr[] players, int length)
    CriSint32 criAtomExDbas_GetStreamingPlayerHandles_(CriAtomExDbasId dbas_id, CriAtomPlayerHn *players, CriSint32 length)
    Parameters
    Type Name Description
    IntPtr[] players

    プレーヤーハンドル受け取り用配列

    int length

    プレーヤーハンドル受け取り用配列要素数

    Returns
    Type Description
    int

    CriSint32 プレーヤー数

    Remarks

    説明: ストリーム再生中のAtomプレーヤーオブジェクトを取得します。 プレーヤーオブジェクトの取得に成功すると、 第3引数(players配列)にプレーヤーオブジェクトのアドレスが保存され、 プレーヤーオブジェクト数が戻り値として返されます。

    備考: 第3引数(players配列)にnull、第4引数(length)に0を指定することで、 ストリーム再生中のプレーヤーの数だけを戻り値として取得可能です。

    注意: プレーヤー数を取得してからオブジェクトを取得する場合、 プレーヤー数取得とオブジェクト取得の間にサーバー処理が割り込まないよう、 Lock() 関数で排他制御を行う必要があります。 (サーバー処理のタイミングで、プレーヤー数が変わる可能性があります。) 配列要素数がストリーム再生中のプレーヤー数に満たない場合、 本関数はエラー値(-1)を返します。

    SetDefaultConfig(out Config)

    LE Pro

    CriAtomExDbas.Config へのデフォルトパラメーターのセット

    Declaration
    • C#
    • C
    public static void SetDefaultConfig(out CriAtomExDbas.Config pConfig)
    void criAtomExDbas_SetDefaultConfig_(CriAtomExDbasConfig *p_config)
    Parameters
    Type Name Description
    CriAtomExDbas.Config pConfig

    D-BAS作成用コンフィグ構造体へのポインタ

    Remarks

    説明: CriAtomExDbas(in Config) 関数に設定するコンフィグ構造体 ( CriAtomExDbas.Config )に、デフォルトの値をセットします。

    See Also
    CriAtomExDbas.Config
    CriAtomExDbas(in Config)
    CalculateWorkSize(in Config)

    Implements

    IDisposable

    See Also

    CriAtomExDbas(in Config)
    Dispose()
    In this article
    Back to top Generated by DocFX