/** * Returns {@code true} if the file contains a 16-bit image. * * @param filename the file name */ @NativeType("int") public static boolean stbi_is_16_bit(@NativeType("char const *") ByteBuffer filename) { if (CHECKS) { checkNT1(filename); } return nstbi_is_16_bit(memAddress(filename)) != 0; }
/** * Returns {@code true} if the file contains a 16-bit image. * * @param filename the file name */ @NativeType("int") public static boolean stbi_is_16_bit(@NativeType("char const *") CharSequence filename) { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nASCII(filename, true); long filenameEncoded = stack.getPointerAddress(); return nstbi_is_16_bit(filenameEncoded) != 0; } finally { stack.setPointer(stackPointer); } }