MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / asInt

Method asInt

CodenameOne/src/com/codename1/gpu/GltfLoader.java:454–459  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

452 }
453
454 private static int asInt(Object o) {
455 if (o instanceof Number) {
456 return ((Number) o).intValue();
457 }
458 return Integer.parseInt(o.toString());
459 }
460
461 private static int readUInt16(byte[] b, int p) {
462 return (b[p] & 0xff) | ((b[p + 1] & 0xff) << 8);

Callers 6

buildMethod · 0.95
readFloatAccessorMethod · 0.95
readIntAccessorMethod · 0.95
resolveBufferMethod · 0.95
loadBaseColorTextureMethod · 0.95
readImageBytesMethod · 0.95

Calls 3

parseIntMethod · 0.95
intValueMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected