Home | History | Annotate | Download | only in net

Lines Matching refs:buf

67     byte[] buf;
79 * {@code buf.length}.
81 * @param buf buffer for holding the incoming datagram.
87 public DatagramPacket(byte buf[], int offset, int length) {
88 setData(buf, offset, length);
98 * {@code buf.length}.
100 * @param buf buffer for holding the incoming datagram.
103 public DatagramPacket(byte buf[], int length) {
104 this (buf, 0, length);
112 * {@code buf.length}.
114 * @param buf the packet data.
123 public DatagramPacket(byte buf[], int offset, int length,
125 setData(buf, offset, length);
136 * {@code buf.length}.
143 * @param buf the packet data.
152 public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) {
153 setData(buf, offset, length);
162 * to {@code buf.length}.
169 * @param buf the packet data.
175 public DatagramPacket(byte buf[], int length,
177 this(buf, 0, length, address, port);
184 * to {@code buf.length}.
186 * @param buf the packet data.
193 public DatagramPacket(byte buf[], int length, SocketAddress address) {
194 this(buf, 0, length, address);
231 return buf;
263 * @param buf the buffer to set for this packet
278 public synchronized void setData(byte[] buf, int offset, int length) {
279 /* this will check to see if buf is null */
282 ((length + offset) > buf.length)) {
285 this.buf = buf;
362 * the length of {@code buf}.
364 * @param buf the buffer to set for this packet.
373 public synchronized void setData(byte[] buf) {
374 if (buf == null) {
377 this.buf = buf;
379 this.length = buf.length;
380 this.bufLength = buf.length;
402 if ((length + offset) > buf.length || length < 0 ||