equal
deleted
inserted
replaced
61 return bytes; |
61 return bytes; |
62 } |
62 } |
63 |
63 |
64 // Parses buffer as array of NULL-terminated C strings. |
64 // Parses buffer as array of NULL-terminated C strings. |
65 private List<String> asList(long address, int size) { |
65 private List<String> asList(long address, int size) { |
66 final List<String> list = new ArrayList<String>(); |
66 List<String> list = new ArrayList<>(); |
67 int start = 0; |
67 int start = 0; |
68 int pos = 0; |
68 int pos = 0; |
69 while (pos < size) { |
69 while (pos < size) { |
70 if (unsafe.getByte(address + pos) == 0) { |
70 if (unsafe.getByte(address + pos) == 0) { |
71 int len = pos - start; |
71 int len = pos - start; |