本文へスキップ
バージョン: 3.1

struct XRPersistentAnchorPayload

(Niantic.Lightship.AR.XRSubsystems.XRPersistentAnchorPayload)

概要

永続アンカーのペイロードを表します。

    struct XRPersistentAnchorPayload:IEquatable< XRPersistentAnchorPayload > {
// fields

IntPtr nativePtr => m_NativePtr;
int size => m_Size;
IntPtr m_NativePtr;
int m_Size;

// methods

XRPersistentAnchorPayload(IntPtr nativePayloadPtr, int size);
bool Equals(XRPersistentAnchorPayload other)
override bool Equals(object obj);
override int GetHashCode();
byte[] GetDataAsBytes();

static bool operator == (
XRPersistentAnchorPayload lhs,
XRPersistentAnchorPayload rhs
);

static bool operator= (
XRPersistentAnchorPayload lhs,
XRPersistentAnchorPayload rhs
);
}

詳細資料

永続アンカーのペイロードを表します。

    **参照

    XRPersistentAnchorPayload

フィールド

nativePtr

IntPtr nativePtr => m_NativePtr

アンカーペイロードに関連付けられたネイティブポインタ。 このポインタが指すデータは実装に依存する。

サイズ

int size => m_Size

ペイロードのサイズ

方法

XRPersistentAnchorPayload

XRPersistentAnchorPayload(IntPtr nativePayloadPtr, int size)

ネイティブ・コードからアンカーのペイロード・データを構築する。

    **パラメーター

    nativePayloadPtr`` - アンカーペイロードに関連付けられたネイティブポインタ。 このポインタが指すデータは実装に依存する。

イコール

bool Equals(XRPersistentAnchorPayload other)

等しいかどうかのテスト。

    **パラメーター

    other - 比較する他の XRPersistentAnchorPayload.

    **返品について

    other*のすべてのフィールドがこの XRPersistentAnchorPayloadと等しければtrue、そうでなければfalse。

イコール

オーバーライド bool Equals(object obj)

等しいかどうかのテスト。

    **パラメーター

    obj - 比較する オブジェクト である。

    **返品について

    obj*XRPersistentAnchorPayloadであり、Equals(XRPersistentAnchorPayload)trueを返し、そうでなければ falseを返す。

GetDataAsBytes

byte[] GetDataAsBytes()

このXRPersistentAnchorPayloadに関連付けられたデータを取得します。 これは高価な手術だ! ペイロードが無効な場合、空のbyte[]を返す。

演算子==

static bool operator == (
XRPersistentAnchorPayload lhs,
XRPersistentAnchorPayload rhs
)

等しいかどうかのテスト。 Equals(XRPersistentAnchorPayload)](/docs/ja/ardk/3.1/apiref/Niantic/Lightship/AR/XRSubsystems/XRPersistentAnchorPayload/#Equals)と同じ。

    **パラメーター

    lhs`` - 比較の左辺。

    rhs`` - 比較の右辺。

    **返品について

    もし lhsrhs と等しければ true を、そうでなければ false を返す。

演算子!= {#演算子!=}」。

static bool operator != (
XRPersistentAnchorPayload lhs,
XRPersistentAnchorPayload rhs
)

不平等のテスト。 Equals(XRPersistentAnchorPayload)](/docs/ja/ardk/3.1/apiref/Niantic/Lightship/AR/XRSubsystems/XRPersistentAnchorPayload/#Equals) と同じです。

    **パラメーター

    lhs`` - 比較の左辺。

    rhs`` - 比較の右辺。

    **返品について

    もし lhsrhs と等しくなければ true, そうでなければ false.