Lines Matching refs:bytes
45 * Constructs a new <CODE>SnmpIpAddress</CODE> from the specified bytes array.
46 * @param bytes The four bytes composing the address.
49 public SnmpIpAddress(byte[] bytes) throws IllegalArgumentException {
50 buildFromByteArray(bytes);
199 private void buildFromByteArray(byte[] bytes) {
200 if (bytes.length != 4) {
205 components[0] = (bytes[0] >= 0) ? bytes[0] : bytes[0] + 256 ;
206 components[1] = (bytes[1] >= 0) ? bytes[1] : bytes[1] + 256 ;
207 components[2] = (bytes[2] >= 0) ? bytes[2] : bytes[2] + 256 ;
208 components[3] = (bytes[3] >= 0) ? bytes[3] : bytes[3] + 256 ;