IceRPC Logo
Docs
  • Getting Started
  • IceRPC
  • Slice
  • Protobuf
  • IceRPC for Ice users
  • API Reference
  1. Slice
  2. Encoding reference
  • Overview
    • Basics

      • Slice components
      • Contract first model
      • Slice files
      • Examples
    • Language guide

      • Compilation mode
      • Module
      • Interface
      • Operation
      • Fields
      • Parameters
      • Primitive types
      • Enum types
      • Result types
      • Struct types
      • Sequence types
      • Dictionary types
      • Custom types
      • Well-known types
      • Using proxies as Slice types
      • Type alias
      • Attributes
      • Comments and doc comments
      • Preprocessor directives
    • Encoding reference

      • Overview
      • Encoding-only constructs
      • Primitive types
      • User-defined types
      • Constructed types
      • Operation arguments and return values
      • IceRPC + Slice integration
  1. Slice
  2. Encoding reference

2 min read

Operation arguments and return values

Understand how operation arguments and return values are encoded with Slice.

The arguments and return value of an operation are encoded in exactly the same way. The text below describes the encoding of arguments, and the same rules apply to return values.

PreviousConstructed types
NextIceRPC + Slice integration

Was this page helpful?

On this page

  • Non-stream encoding
  • Stream encoding
  • Empty optimization

Actions

  • Edit this page
  • GitHub Discussions
© 2025 ZeroC
  • About
  • Privacy Policy
  • Contact