PartitionedMesh.Companion


public static class PartitionedMesh.Companion


Declared as a target for extension functions.

Summary

Extension functions

static final @NonNull PartitionedMesh
@Throws(exceptionClasses = [IOException])
PartitionedMeshExtensions.decode(
    @NonNull PartitionedMesh.Companion receiver,
    @NonNull byte[] input
)

Read a serialized gzip-compressed ink.proto.CodedModeledShape from the given ByteArray and parse it into a PartitionedMesh, throwing an exception if parsing or validation was not successful.

static final @NonNull PartitionedMesh

Read a serialized gzip-compressed ink.proto.CodedModeledShape from the given InputStream and parse it into a PartitionedMesh, throwing an exception if parsing or validation was not successful.

Extension functions

PartitionedMeshExtensions.decode

@Throws(exceptionClasses = [IOException])
public static final @NonNull PartitionedMesh PartitionedMeshExtensions.decode(
    @NonNull PartitionedMesh.Companion receiver,
    @NonNull byte[] input
)

Read a serialized gzip-compressed ink.proto.CodedModeledShape from the given ByteArray and parse it into a PartitionedMesh, throwing an exception if parsing or validation was not successful.

Parameters
@NonNull byte[] input

ByteArray providing gzip-compressed ink.proto.CodedModeledShape binary proto messages, the same as written by encode.

Returns
@NonNull PartitionedMesh

The PartitionedMesh parsed from the ByteArray.

Throws
IOException

if gzip-format bytes cannot be read from input.

IllegalArgumentException

input does not provide a valid ink.proto.CodedModeledShape proto message, or the corresponding PartitionedMesh is invalid.

PartitionedMeshExtensions.decode

public static final @NonNull PartitionedMesh PartitionedMeshExtensions.decode(
    @NonNull PartitionedMesh.Companion receiver,
    @NonNull InputStream input
)

Read a serialized gzip-compressed ink.proto.CodedModeledShape from the given InputStream and parse it into a PartitionedMesh, throwing an exception if parsing or validation was not successful. Java callers should use PartitionedMeshSerialization.decode instead.

Parameters
@NonNull InputStream input

InputStream providing gzip-compressed ink.proto.CodedModeledShape binary proto messages, the same as written by encode.

Returns
@NonNull PartitionedMesh

The PartitionedMesh parsed from the InputStream.

Throws
java.io.IOException

if gzip-format bytes cannot be read from input.

IllegalArgumentException

input does not provide a valid ink.proto.CodedModeledShape proto message, or the corresponding PartitionedMesh is invalid.