| | | 1 | | // Copyright (c) ZeroC, Inc. |
| | | 2 | | |
| | | 3 | | using ZeroC.Slice; |
| | | 4 | | |
| | | 5 | | namespace IceRpc.Transports.Slic.Internal; |
| | | 6 | | |
| | | 7 | | /// <summary>Provides an extension method for <see cref="SliceDecoder" /> to decode a 64-bit opaque data value into a |
| | | 8 | | /// <see langword="long"/>.</summary> |
| | | 9 | | internal static class OpaqueDataSliceDecoderExtensions |
| | | 10 | | { |
| | | 11 | | /// <summary>Decodes a 64-bit opaque data value.</summary> |
| | | 12 | | /// <param name="decoder">The Slice decoder.</param> |
| | | 13 | | /// <returns>The opaque data value decoded as a <see langword="long"/>.</returns> |
| | 54 | 14 | | internal static long DecodeOpaqueData(this ref SliceDecoder decoder) => decoder.DecodeInt64(); |
| | | 15 | | } |