summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/FileA3D.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2018-07-09 10:40:40 +0900
committerRemi NGUYEN VAN <reminv@google.com>2018-08-03 15:55:24 +0900
commit0066bda4cf7e11d38a99b7d177fca9bd50d70598 (patch)
tree67f2fa2ead1f2e5814b801f65110ceb6c0c48495 /rs/java/android/renderscript/FileA3D.java
parentaa863ca68eddbccef374e2ac283981e94d8629aa (diff)
Add utils to convert Inet4Address <-> int
The current utilities map the higher-order bytes of ints to the lower-order bytes of IPv4 addresses, which makes applying masks and generating series of addresses confusing. For example, the current utilities would convert 1.2.3.4 to 0x04030201, or generate 0x0080ffff for a /17 subnet mask. The utilities in this CL convert 1.2.3.4 to 0x01020304, and a /17 subnet mask is represented as 0xffff8000. Includes tests for all the above methods and migration of NetworkUtilsTest to JUnit4. Test: added tests pass Change-Id: I5f5aa2e6e3b054b66b9dc507dab64f41be9139b1
Diffstat (limited to 'rs/java/android/renderscript/FileA3D.java')
0 files changed, 0 insertions, 0 deletions