docs.unity3d.com
    Show / Hide Table of Contents

    Struct __GHOST_NAME__GhostComponentSerializer

    Namespace: __GHOST_NAMESPACE__
    Syntax
    [BurstCompile]
    public struct __GHOST_NAME__GhostComponentSerializer

    Fields

    ChangeMaskBits

    Declaration
    public const int ChangeMaskBits = default(int)
    Field Value
    Type Description
    Int32

    Properties

    State

    Declaration
    public static readonly GhostComponentSerializer.State State { get; }
    Property Value
    Type Description
    GhostComponentSerializer.State

    Methods

    CopyFromSnapshot(IntPtr, IntPtr, Int32, Int32, IntPtr, Int32, Int32)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.CopyToFromSnapshotDelegate))]
    public static void CopyFromSnapshot(IntPtr stateData, IntPtr snapshotData, int snapshotOffset, int snapshotStride, IntPtr componentData, int componentStride, int count)
    Parameters
    Type Name Description
    IntPtr stateData
    IntPtr snapshotData
    Int32 snapshotOffset
    Int32 snapshotStride
    IntPtr componentData
    Int32 componentStride
    Int32 count

    CopyToSnapshot(IntPtr, IntPtr, Int32, Int32, IntPtr, Int32, Int32)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.CopyToFromSnapshotDelegate))]
    public static void CopyToSnapshot(IntPtr stateData, IntPtr snapshotData, int snapshotOffset, int snapshotStride, IntPtr componentData, int componentStride, int count)
    Parameters
    Type Name Description
    IntPtr stateData
    IntPtr snapshotData
    Int32 snapshotOffset
    Int32 snapshotStride
    IntPtr componentData
    Int32 componentStride
    Int32 count

    Deserialize(IntPtr, IntPtr, ref DataStreamReader, ref NetworkCompressionModel, IntPtr, Int32)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.DeserializeDelegate))]
    public static void Deserialize(IntPtr snapshotData, IntPtr baselineData, ref DataStreamReader reader, ref NetworkCompressionModel compressionModel, IntPtr changeMaskData, int startOffset)
    Parameters
    Type Name Description
    IntPtr snapshotData
    IntPtr baselineData
    DataStreamReader reader
    NetworkCompressionModel compressionModel
    IntPtr changeMaskData
    Int32 startOffset

    PostSerializeBuffer(IntPtr, Int32, Int32, Int32, Int32, IntPtr, ref DataStreamWriter, ref NetworkCompressionModel, IntPtr, IntPtr, IntPtr, Int32)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.PostSerializeBufferDelegate))]
    public static void PostSerializeBuffer(IntPtr snapshotData, int snapshotOffset, int snapshotStride, int maskOffsetInBits, int count, IntPtr baselines, ref DataStreamWriter writer, ref NetworkCompressionModel compressionModel, IntPtr entityStartBit, IntPtr snapshotDynamicDataPtr, IntPtr dynamicSizePerEntity, int dynamicSnapshotMaxOffset)
    Parameters
    Type Name Description
    IntPtr snapshotData
    Int32 snapshotOffset
    Int32 snapshotStride
    Int32 maskOffsetInBits
    Int32 count
    IntPtr baselines
    DataStreamWriter writer
    NetworkCompressionModel compressionModel
    IntPtr entityStartBit
    IntPtr snapshotDynamicDataPtr
    IntPtr dynamicSizePerEntity
    Int32 dynamicSnapshotMaxOffset

    PredictDelta(IntPtr, IntPtr, IntPtr, ref GhostDeltaPredictor)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.PredictDeltaDelegate))]
    public static void PredictDelta(IntPtr snapshotData, IntPtr baseline1Data, IntPtr baseline2Data, ref GhostDeltaPredictor predictor)
    Parameters
    Type Name Description
    IntPtr snapshotData
    IntPtr baseline1Data
    IntPtr baseline2Data
    GhostDeltaPredictor predictor

    RestoreFromBackup(IntPtr, IntPtr)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.RestoreFromBackupDelegate))]
    public static void RestoreFromBackup(IntPtr componentData, IntPtr backupData)
    Parameters
    Type Name Description
    IntPtr componentData
    IntPtr backupData

    SerializeBuffer(IntPtr, IntPtr, Int32, Int32, Int32, IntPtr, IntPtr, Int32, IntPtr, ref DataStreamWriter, ref NetworkCompressionModel, IntPtr, IntPtr, ref Int32, IntPtr, Int32)

    Declaration
    [BurstCompile(DisableDirectCall = true)]
    [MonoPInvokeCallback(typeof(GhostComponentSerializer.SerializeBufferDelegate))]
    public static void SerializeBuffer(IntPtr stateData, IntPtr snapshotData, int snapshotOffset, int snapshotStride, int maskOffsetInBits, IntPtr componentData, IntPtr componentDataLen, int count, IntPtr baselines, ref DataStreamWriter writer, ref NetworkCompressionModel compressionModel, IntPtr entityStartBit, IntPtr snapshotDynamicDataPtr, ref int dynamicSnapshotDataOffset, IntPtr dynamicSizePerEntity, int dynamicSnapshotMaxOffset)
    Parameters
    Type Name Description
    IntPtr stateData
    IntPtr snapshotData
    Int32 snapshotOffset
    Int32 snapshotStride
    Int32 maskOffsetInBits
    IntPtr componentData
    IntPtr componentDataLen
    Int32 count
    IntPtr baselines
    DataStreamWriter writer
    NetworkCompressionModel compressionModel
    IntPtr entityStartBit
    IntPtr snapshotDynamicDataPtr
    Int32 dynamicSnapshotDataOffset
    IntPtr dynamicSizePerEntity
    Int32 dynamicSnapshotMaxOffset
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023