@@ -42,12 +42,12 @@ public interface ByteBuf {
42
42
* <p>Writes the given byte into this buffer at the given index. </p>
43
43
*
44
44
* @param index The index at which the byte will be written
45
- * @param b The byte value to be written
45
+ * @param value The byte value to be written
46
46
* @return This buffer
47
47
* @throws IndexOutOfBoundsException If {@code index} is negative or not smaller than the buffer's limit
48
48
* @throws java.nio.ReadOnlyBufferException If this buffer is read-only
49
49
*/
50
- ByteBuf put (int index , byte b );
50
+ ByteBuf put (int index , byte value );
51
51
52
52
/**
53
53
* Returns the number of elements between the current position and the limit.
@@ -99,60 +99,61 @@ public interface ByteBuf {
99
99
*
100
100
* <p>Writes the given byte into this buffer at the current position, and then increments the position. </p>
101
101
*
102
- * @param b The byte to be written
102
+ * @param value The byte to be written
103
103
* @return This buffer
104
104
* @throws java.nio.BufferOverflowException If this buffer's current position is not smaller than its limit
105
105
* @throws java.nio.ReadOnlyBufferException If this buffer is read-only
106
106
*/
107
- ByteBuf put (byte b );
107
+ ByteBuf put (byte value );
108
108
109
109
/**
110
110
* Writes the given int value into this buffer at the current position,
111
111
* using the current byte order, and increments the position by 4.
112
112
*
113
- * @param b the int value to be written
113
+ * @param value the int value to be written
114
114
* @return this buffer
115
115
* @throws java.nio.BufferOverflowException if there are fewer than 4 bytes remaining in this buffer
116
116
* @throws java.nio.ReadOnlyBufferException if this buffer is read-only
117
117
* @since 5.4
118
118
*/
119
- ByteBuf putInt (int b );
119
+ ByteBuf putInt (int value );
120
120
121
121
/**
122
122
* Writes the given int value into this buffer at the current position,
123
123
* using the current byte order, and increments the position by 4.
124
124
*
125
- * @param b the int value to be written
125
+ * @param value the int value to be written
126
+ * @param index the index at which the int will be written
126
127
* @return this buffer
127
128
* @throws java.nio.BufferOverflowException if there are fewer than 4 bytes remaining in this buffer
128
129
* @throws java.nio.ReadOnlyBufferException if this buffer is read-only
129
130
* @since 5.4
130
131
*/
131
- ByteBuf putInt (int index , int b );
132
+ ByteBuf putInt (int index , int value );
132
133
133
134
/**
134
135
* Writes the given double value into this buffer at the current position,
135
136
* using the current byte order, and increments the position by 8.
136
137
*
137
- * @param b the double value to be written
138
+ * @param value the double value to be written
138
139
* @return this buffer
139
140
* @throws java.nio.BufferOverflowException if there are fewer than 8 bytes remaining in this buffer
140
141
* @throws java.nio.ReadOnlyBufferException if this buffer is read-only
141
142
* @since 5.4
142
143
*/
143
- ByteBuf putDouble (double b );
144
+ ByteBuf putDouble (double value );
144
145
145
146
/**
146
147
* Writes the given long value into this buffer at the current position,
147
148
* using the current byte order, and increments the position by 8.
148
149
*
149
- * @param b the long value to be written
150
+ * @param value the long value to be written
150
151
* @return this buffer
151
152
* @throws java.nio.BufferOverflowException if there are fewer than 8 bytes remaining in this buffer
152
153
* @throws java.nio.ReadOnlyBufferException if this buffer is read-only
153
154
* @since 5.4
154
155
*/
155
- ByteBuf putLong (long b );
156
+ ByteBuf putLong (long value );
156
157
157
158
/**
158
159
* <p>Flips this buffer. The limit is set to the current position and then the position is set to zero. If the mark is defined then it
@@ -198,6 +199,7 @@ public interface ByteBuf {
198
199
* Returns the offset of the first byte within the backing byte array of
199
200
* this buffer.
200
201
*
202
+ * @return the offset within this buffer's array.
201
203
* @throws java.nio.ReadOnlyBufferException If this buffer is backed by an array but is read-only
202
204
* @throws UnsupportedOperationException if this buffer is not backed by an accessible array
203
205
* @since 5.5
0 commit comments