actually write saved data
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
6790816a3a
commit
3f92046a1f
Binary file not shown.
@ -170,9 +170,18 @@ public class Map {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stream.writeInt(eventCounter);
|
||||||
|
saveIntData(stream,eventData);
|
||||||
stream.close();
|
stream.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void saveIntData(DataOutputStream stream, int[] a) throws IOException {
|
||||||
|
int marker = 0;
|
||||||
|
while (marker<a.length) {
|
||||||
|
stream.writeInt(a[marker++]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void saveCharData(DataOutputStream stream, char[] a) throws IOException {
|
private static void saveCharData(DataOutputStream stream, char[] a) throws IOException {
|
||||||
int marker = 0;
|
int marker = 0;
|
||||||
while (marker<a.length) {
|
while (marker<a.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user