コード例 #1
0
        private static async Task WriteListInt32(short id, int[] values)
        {
            await _thrift.WriteFieldBeginAsync(new TField(null, TType.List, id), System.Threading.CancellationToken.None);

            await _thrift.WriteListBeginAsync(new TList(TType.I32, values.Length), System.Threading.CancellationToken.None);

            foreach (var value in values)
            {
                await _thrift.WriteI32Async(value, System.Threading.CancellationToken.None);
            }
        }
コード例 #2
0
        private static async Task WriteListInt32(short id, int[] values)
        {
            await _thrift.WriteFieldBeginAsync(new TField(null, TType.List, id));

            await _thrift.WriteListBeginAsync(new TList(TType.I32, values.Length));

            foreach (var value in values)
            {
                await _thrift.WriteI32Async(value);
            }
        }