| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using IceRpc.Internal; |
| | 4 | | using ZeroC.Slice; |
| | 5 | |
|
| | 6 | | namespace IceRpc.Slice.Ice; |
| | 7 | |
|
| | 8 | | /// <summary>Provides an extension method for <see cref="SliceDecoder" /> to decode a path encoded as an Ice |
| | 9 | | /// identity.</summary> |
| | 10 | | public static class IdentityPathSliceDecoderExtensions |
| | 11 | | { |
| | 12 | | /// <summary>Decodes a path encoded as an Ice identity.</summary> |
| | 13 | | /// <param name="decoder">The Slice decoder.</param> |
| | 14 | | /// <returns>The decoded identity path.</returns> |
| 0 | 15 | | public static string DecodeIdentityPath(this ref SliceDecoder decoder) => new Identity(ref decoder).ToPath(); |
| | 16 | | } |