| | | 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="SliceEncoder" /> to encode a <see langword="long" /> into a |
| | | 8 | | /// 64-bit opaque data value.</summary> |
| | | 9 | | internal static class OpaqueDataSliceEncoderExtensions |
| | | 10 | | { |
| | | 11 | | /// <summary>Encodes a <see langword="long" /> as a 64-bit opaque data value.</summary> |
| | | 12 | | /// <param name="encoder">The Slice encoder.</param> |
| | | 13 | | /// <param name="value">The value to encode.</param> |
| | 54 | 14 | | internal static void EncodeOpaqueData(this ref SliceEncoder encoder, long value) => encoder.EncodeInt64(value); |
| | | 15 | | } |