Searched defs:cast (Results 1 - 2 of 2) sorted by relevance
/libcore/luni/src/main/native/ |
H A D | libcore_io_Memory.cpp | 45 template <typename T> static T cast(jlong address) { function 106 return *cast<const jbyte*>(srcAddress); 110 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress)); 126 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \ 129 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \ 159 *cast<jbyte*>(dstAddress) = value; 163 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); 180 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); \ 182 env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); \ 211 return get_unaligned<jshort>(cast<cons [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Class.java | 469 * {@code Object} argument is non-null and can be cast to the 2298 * @param obj the object to be cast 2306 public T cast(Object obj) { method in class:Class 2313 return "Cannot cast " + obj.getClass().getName() + " to " + getName(); 2318 * represented by the specified class object. Checks that that the cast 2324 * {@code Class} objects that it is willing to accept. A cast would 2325 * generate a compile-time warning, as the correctness of the cast 2329 * @return this {@code Class} object, cast to represent a subclass of 2341 " cannot be cast to " + clazz.getName());
|
Completed in 68 milliseconds