Home | History | Annotate | Download | only in net

Lines Matching refs:offset

68     int offset;
76 * length {@code length}, specifying an offset into the buffer.
82 * @param offset the offset for the buffer
87 public DatagramPacket(byte buf[], int offset, int length) {
88 setData(buf, offset, length);
109 * {@code length} with offset {@code ioffset}to the
115 * @param offset the packet data offset.
123 public DatagramPacket(byte buf[], int offset, int length,
125 setData(buf, offset, length);
133 * {@code length} with offset {@code ioffset}to the
144 * @param offset the packet data offset.
152 public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) {
153 setData(buf, offset, length);
224 * starts from the {@code offset} in the buffer,
235 * Returns the offset of the data to be sent or the offset of the
238 * @return the offset of the data to be sent or the offset of the
244 return offset;
261 * data, length and offset of the packet.
265 * @param offset the offset into the data
278 public synchronized void setData(byte[] buf, int offset, int length) {
280 if (length < 0 || offset < 0 ||
281 (length + offset) < 0 ||
282 ((length + offset) > buf.length)) {
283 throw new IllegalArgumentException("illegal length or offset");
288 this.offset = offset;
360 * Set the data buffer for this packet. With the offset of
378 this.offset = 0;
388 * equal to the offset plus the length of the packet's buffer.
402 if ((length + offset) > buf.length || length < 0 ||
403 (length + offset) < 0) {