1 using System;
2 using Couchbase.Core.IO.Converters;
3 
4 namespace Couchbase.Core.IO.Operations
5 {
6     internal class Touch : MutationOperationBase
7     {
WriteExtras(OperationBuilder builder)8         protected override void WriteExtras(OperationBuilder builder)
9         {
10             Span<byte> extras = stackalloc byte[4];
11             ByteConverter.FromUInt32(Expires, extras);
12             builder.Write(extras);
13         }
14 
WriteBody(OperationBuilder builder)15         protected override void WriteBody(OperationBuilder builder)
16         {
17         }
18 
19         public override OpCode OpCode => OpCode.Touch;
20     }
21 }
22 
23 #region [ License information          ]
24 
25 /* ************************************************************
26  *
27  *    @author Couchbase <info@couchbase.com>
28  *    @copyright 2017 Couchbase, Inc.
29  *
30  *    Licensed under the Apache License, Version 2.0 (the "License");
31  *    you may not use this file except in compliance with the License.
32  *    You may obtain a copy of the License at
33  *
34  *        http://www.apache.org/licenses/LICENSE-2.0
35  *
36  *    Unless required by applicable law or agreed to in writing, software
37  *    distributed under the License is distributed on an "AS IS" BASIS,
38  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39  *    See the License for the specific language governing permissions and
40  *    limitations under the License.
41  *
42  * ************************************************************/
43 
44 #endregion
45