Table of Contents

Namespace ZeroC.Slice

Supports encoding/decoding structured data to/from bytes in the Slice format. The Slice compiler for C# generates code that relies on these APIs.

Classes

CompactSliceTypeIdAttribute

Assigns a compact Slice type ID to a class.

DurationSliceDecoderExtensions

Provides an extension method for SliceDecoder to decode a WellKnownTypes::Duration into a TimeSpan.

DurationSliceEncoderExtensions

Provides an extension method for SliceEncoder to encode a TimeSpan as a WellKnownTypes::Duration.

Result<TSuccess, TFailure>

A discriminated union that represents either a success or a failure. It is typically used as the return type of Slice operations.

Result<TSuccess, TFailure>.Failure

Represents a failed Result<TSuccess, TFailure>.

Result<TSuccess, TFailure>.Success

Represents a successful Result<TSuccess, TFailure>.

Slice2Definitions

Provides a constant used by the Slice2 encoding.

SliceAttribute

Represents an assembly attribute for assemblies that contain Slice generated code.

SliceClass

Represents the base class for classes defined in Slice. The Slice keyword AnyClass maps to this class.

SliceDecoderExtensions

Provides extension methods for SliceDecoder to decode sequences or dictionaries.

SliceEncoderExtensions

Provides extension methods for SliceEncoder to encode sequences or dictionaries.

SliceException

Represents the base class for exceptions defined in Slice.

SliceInfo

Encapsulates the details of a class slice (as in slice of cake) that an IActivator could not decode.

SliceTypeIdAttribute

Assigns a Slice type ID to a class, interface, or struct.

TimeStampSliceDecoderExtensions

Provides an extension method for SliceDecoder to decode a WellKnownTypes::TimeStamp into a DateTime.

TimeStampSliceEncoderExtensions

Provides an extension method for SliceEncoder to encode a DateTime as a WellKnownTypes::TimeStamp.

TypeExtensions

Provides extension methods for Type.

UnknownSliceClass

Represents a fully sliced class instance. The IActivator used during decoding does not know this type or any of its base classes.

UriSliceDecoderExtensions

Provides an extension method for SliceDecoder to decode a WellKnownTypes::Uri into a Uri.

UriSliceEncoderExtensions

Provides an extension method for SliceEncoder to encode a Uri as a WellKnownTypes::Uri.

UuidSliceDecoderExtensions

Provides an extension method for SliceDecoder to decode a WellKnownTypes::Uuid into a Guid.

UuidSliceEncoderExtensions

Provides an extension method for SliceEncoder to encode a Guid as a WellKnownTypes::Uuid.

Structs

BitSequenceReader

Provides a method for reading a bit sequence.

BitSequenceWriter

Provides a method for writing a bit sequence.

SliceDecoder

Provides methods to decode data encoded with Slice.

SliceEncoder

Provides methods to encode data with Slice.

Interfaces

IActivator

Provides methods that create class and exception instances from Slice type IDs.

Enums

ClassFormat

Describes the possible formats when encoding classes.

SliceEncoding

Describes the versions of the Slice encoding supported by this implementation.

TagFormat

The tag format used by tagged fields with the Slice1 encoding.

Delegates

DecodeFunc<T>

Represents a delegate that decodes a value from a Slice decoder.

EncodeAction

Represents a delegate that encodes into a Slice encoder.

EncodeAction<T>

Represents a delegate that encodes a value with a Slice encoder.