Mercurial > hg > Database > Christie-sharp
comparison datagear/command/PutCommand.cs @ 20:3aaa77e12493
update
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 01 Dec 2020 20:23:09 +0900 |
parents | 7352793b5dbe |
children | 58858657a0e0 |
comparison
equal
deleted
inserted
replaced
19:c9d1a5a79254 | 20:3aaa77e12493 |
---|---|
22 byte[] dataSize = MessagePackSerializer.Serialize(data.Length); | 22 byte[] dataSize = MessagePackSerializer.Serialize(data.Length); |
23 | 23 |
24 stream.Write(command, 0, command.Length); | 24 stream.Write(command, 0, command.Length); |
25 stream.Write(data, 0, data.Length); | 25 stream.Write(data, 0, data.Length); |
26 stream.Write(dataSize, 0, dataSize.Length); | 26 stream.Write(dataSize, 0, dataSize.Length); |
27 stream.Position = 0; | |
27 } catch (IOException e) { | 28 } catch (IOException e) { |
28 Console.WriteLine(e.StackTrace); | 29 Console.WriteLine(e.StackTrace); |
29 } | 30 } |
30 return stream; | 31 return stream; |
31 } | 32 } |