Difference between revisions of "LlDataSizeKeyValue/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 2: Line 2:
{{LSL_Function/ja
{{LSL_Function/ja
|inject-2=
|inject-2=
{{LSL Function/KeyValue|d2_type=integer|d2_name=used|d2_desc=Number of bytes used|d3_type=integer|d3_name=quota|d3_desc=Number of bytes the key-store can utilize}}
{{LSL Function/KeyValue/ja|d2_type=integer|d2_name=used|d2_desc=Number of bytes used|d3_type=integer|d3_name=quota|d3_desc=Number of bytes the key-store can utilize}}
{{LSL Function/Experience|true}}
{{LSL Function/Experience/ja|true}}
|func=llDataSizeKeyValue
|func=llDataSizeKeyValue
|func_desc=Start an asynchronous transaction to request the used and total amount of data allocated for the {{LSLGC|Experience}}.
|func_desc=データの使用量と合計割り当て量をリクエストする非同期トランザクションを開始します。{{LSLGC|Experience}}に割り当てられたデータの使用量と合計量を取得します。
|func_footnote=
|func_footnote=
|return_type=key|return_subtype=handle
|return_type=key|return_subtype=handle
|return_text=that can be used to identify the corresponding [[dataserver]] event to determine if this command succeeded or failed and the results.
|return_text=これを使用して、このコマンドが成功したか失敗したか、およびその結果を判断するための対応する[[dataserver]]イベントを識別できます。
|also_functions=
|also_functions=
*[[llGetExperienceErrorMessage/ja]]
*[[llGetExperienceErrorMessage/ja]]

Latest revision as of 14:03, 22 November 2023

要約

関数: key llDataSizeKeyValue( );

データの使用量と合計割り当て量をリクエストする非同期トランザクションを開始します。Experienceに割り当てられたデータの使用量と合計量を取得します。
これを使用して、このコマンドが成功したか失敗したか、およびその結果を判断するための対応するdataserverイベントを識別できます。を key で返します。

仕様

Dataserver

dataserverコールバックのパラメータは次のとおりです:

文字列のコンポーネント
• integer success トランザクションが成功した場合は1、失敗した場合は0を指定するブール値。
• integer error 操作が失敗した理由を説明するXP_ERROR_*フラグ。
• integer used Number of bytes used
• integer quota Number of bytes the key-store can utilize

警告

  • 以前に体験に関連付けられていたスクリプトを体験のコンパイル機能を持たないクライアントで再コンパイルすると、スクリプトは関連する体験を失います。
All Issues ~ Search JIRA for related Bugs

サンプル

key trans;

default
{
    state_entry()
    {
        trans = llDataSizeKeyValue();
    }
 
    dataserver( key _t, string _value )
    {
        if ( _t == trans )
        {
            // our llDataSizeKeyValue transaction is done
            list result = llCSV2List( _value );
            if ( llList2Integer( result, 0 ) == 1 )
            {
                // data size retrieved
                llSay( 0, "Space in use: " + llList2String( result, 1 ) );
                llSay( 0, "Total space:  " + llList2String( result, 2 ) );
            }
            else
            {
                // data size check failed
                llSay( 0, "Key-value failed to check size: " + llList2String( result, 1 ) );
            }
        }
    } 
}

注意点

コンパイル

スクリプトが Experience に関連するようにするには...

  • 体験をサポートしたクライアントでコンパイルされている必要があります
  • "体験を使用" チェックボックスをチェックする
  • 体験キーの一つを選択する
KBcaution.png 重要 すべての TPV にこの機能があるわけではありません。

特記事項

Search JIRA for related Issues

Signature

function key llDataSizeKeyValue();
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。