Skip to content

Commit c2902c8

Browse files
committed
read unsigned int method
1 parent 7fe10e3 commit c2902c8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/mil/nga/sf/util/ByteReader.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ public int readInt() {
109109
return value;
110110
}
111111

112+
/**
113+
* Read an unsigned integer
114+
*
115+
* @return unsigned integer
116+
*/
117+
public long readUnsignedInt() {
118+
int intValue = readInt();
119+
long value = intValue & 0xffffffffL;
120+
return value;
121+
}
122+
112123
/**
113124
* Read a double
114125
*

0 commit comments

Comments
 (0)