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

Method getInt

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

Converts an 4 bytes java int representation to an int.

(byte b[])

Source from the content-addressed store, hash-verified

282
283 /** Converts an 4 bytes java int representation to an int. */
284 public static int getInt(byte b[]) {
285 return (b[0] & 0xff) | ((b[1] & 0xff) << 8) | ((b[2] & 0xff) << 16) | ((b[3] & 0xff) << 24);
286 }
287
288 /** Duplicates a float array. */
289 public static float[] clone(float in[]) {

Callers 15

StringToFilterMethod · 0.80
RequestNextDownloadMethod · 0.80
ReadNextFrameMethod · 0.80
PlayCinematicMethod · 0.80
Mod_ForNameMethod · 0.80
Mod_LoadSurfedgesMethod · 0.80
texinfo_tMethod · 0.80
Com_BlockChecksumMethod · 0.80
Md2FrameMethod · 0.80
Md2ModelMethod · 0.80
loadBodyMethod · 0.80
Sp2SpriteFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected