ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method Serialize

    | Edit this page View Source

    Serialize(PointCloud3)

    Serializes the given PointCloud3 into a byte array.

    Declaration
    public static byte[] Serialize(this PointCloud3 pc)
    Parameters
    Type Name Description
    PointCloud3 pc

    The PointCloud3 instance to serialize.

    Returns
    Type Description
    byte[]

    A byte array containing the serialized data.

    Remarks

    Data is written in binary little-endian format with standardized header. Optimized for performance and compact file size.

    | Edit this page View Source

    Serialize(PointCloud3, Stream)

    Serializes the given PointCloud3 into the provided stream.

    Declaration
    public static void Serialize(this PointCloud3 pc, Stream destination)
    Parameters
    Type Name Description
    PointCloud3 pc

    The PointCloud3 instance to serialize.

    Stream destination

    The stream to write the serialized data to.

    Remarks

    Useful if you want to append to an existing stream (e.g. FileStream) or avoid large intermediate arrays.