MCPcopy Create free account
hub / github.com/demoth/jake2 / freadString

Method freadString

qcommon/src/main/java/jake2/qcommon/util/Lib.java:233–238  ·  view source on GitHub ↗

Like in libc

(RandomAccessFile f, int len)

Source from the content-addressed store, hash-verified

231
232 /** Like in libc */
233 public static String freadString(RandomAccessFile f, int len) {
234 byte buffer[] = new byte[len];
235 FS.Read(buffer, len, f);
236
237 return Lib.CtoJava(buffer);
238 }
239
240 /** Returns the right part of the string from the last occruence of c. */
241 public static String rightFrom(String in, char c) {

Callers

nothing calls this directly

Calls 2

ReadMethod · 0.95
CtoJavaMethod · 0.95

Tested by

no test coverage detected