@@ -32,22 +32,25 @@ func CreateStreamWriter(w io.Writer, buf *common.Buffer) StreamWriter {
3232
3333// WriteByte1Int64 writes a single byte representation of an int64 value.
3434func (w * StreamWriter ) WriteByte1Int64 (value int64 ) error {
35- return w .buf .Write (w .w ,
35+ return w .buf .Write (
36+ w .w ,
3637 byte (value ),
3738 )
3839}
3940
4041// WriteByte2Int64 writes a two-byte representation of an int64 value.
4142func (w * StreamWriter ) WriteByte2Int64 (value int64 ) error {
42- return w .buf .Write (w .w ,
43+ return w .buf .Write (
44+ w .w ,
4345 byte (value >> 8 ),
4446 byte (value ),
4547 )
4648}
4749
4850// WriteByte4Int64 writes a four-byte representation of an int64 value.
4951func (w * StreamWriter ) WriteByte4Int64 (value int64 ) error {
50- return w .buf .Write (w .w ,
52+ return w .buf .Write (
53+ w .w ,
5154 byte (value >> 24 ),
5255 byte (value >> 16 ),
5356 byte (value >> 8 ),
@@ -57,7 +60,8 @@ func (w *StreamWriter) WriteByte4Int64(value int64) error {
5760
5861// WriteByte8Int64 writes an eight-byte representation of an int64 value.
5962func (w * StreamWriter ) WriteByte8Int64 (value int64 ) error {
60- return w .buf .Write (w .w ,
63+ return w .buf .Write (
64+ w .w ,
6165 byte (value >> 56 ),
6266 byte (value >> 48 ),
6367 byte (value >> 40 ),
@@ -71,22 +75,25 @@ func (w *StreamWriter) WriteByte8Int64(value int64) error {
7175
7276// WriteByte1Uint64 writes a single byte representation of a uint64 value.
7377func (w * StreamWriter ) WriteByte1Uint64 (value uint64 ) error {
74- return w .buf .Write (w .w ,
78+ return w .buf .Write (
79+ w .w ,
7580 byte (value ),
7681 )
7782}
7883
7984// WriteByte2Uint64 writes a two-byte representation of a uint64 value.
8085func (w * StreamWriter ) WriteByte2Uint64 (value uint64 ) error {
81- return w .buf .Write (w .w ,
86+ return w .buf .Write (
87+ w .w ,
8288 byte (value >> 8 ),
8389 byte (value ),
8490 )
8591}
8692
8793// WriteByte4Uint64 writes a four-byte representation of a uint64 value.
8894func (w * StreamWriter ) WriteByte4Uint64 (value uint64 ) error {
89- return w .buf .Write (w .w ,
95+ return w .buf .Write (
96+ w .w ,
9097 byte (value >> 24 ),
9198 byte (value >> 16 ),
9299 byte (value >> 8 ),
@@ -96,7 +103,8 @@ func (w *StreamWriter) WriteByte4Uint64(value uint64) error {
96103
97104// WriteByte8Uint64 writes an eight-byte representation of a uint64 value.
98105func (w * StreamWriter ) WriteByte8Uint64 (value uint64 ) error {
99- return w .buf .Write (w .w ,
106+ return w .buf .Write (
107+ w .w ,
100108 byte (value >> 56 ),
101109 byte (value >> 48 ),
102110 byte (value >> 40 ),
@@ -110,22 +118,25 @@ func (w *StreamWriter) WriteByte8Uint64(value uint64) error {
110118
111119// WriteByte1Int writes a single byte representation of an int value.
112120func (w * StreamWriter ) WriteByte1Int (value int ) error {
113- return w .buf .Write (w .w ,
121+ return w .buf .Write (
122+ w .w ,
114123 byte (value ),
115124 )
116125}
117126
118127// WriteByte2Int writes a two-byte representation of an int value.
119128func (w * StreamWriter ) WriteByte2Int (value int ) error {
120- return w .buf .Write (w .w ,
129+ return w .buf .Write (
130+ w .w ,
121131 byte (value >> 8 ),
122132 byte (value ),
123133 )
124134}
125135
126136// WriteByte4Int writes a four-byte representation of an int value.
127137func (w * StreamWriter ) WriteByte4Int (value int ) error {
128- return w .buf .Write (w .w ,
138+ return w .buf .Write (
139+ w .w ,
129140 byte (value >> 24 ),
130141 byte (value >> 16 ),
131142 byte (value >> 8 ),
@@ -135,7 +146,8 @@ func (w *StreamWriter) WriteByte4Int(value int) error {
135146
136147// WriteByte4Uint32 writes a four-byte representation of a uint32 value.
137148func (w * StreamWriter ) WriteByte4Uint32 (value uint32 ) error {
138- return w .buf .Write (w .w ,
149+ return w .buf .Write (
150+ w .w ,
139151 byte (value >> 24 ),
140152 byte (value >> 16 ),
141153 byte (value >> 8 ),
0 commit comments