Searched defs:cast (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/native/
H A Dlibcore_io_Memory.cpp46 template <typename T> static T cast(jlong address) { function
107 return *cast<const jbyte*>(srcAddress);
111 env->SetByteArrayRegion(dst, dstOffset, byteCount, cast<const jbyte*>(srcAddress));
127 const SWAP_TYPE* src = cast<const SWAP_TYPE*>(srcAddress); \
130 const SCALAR_TYPE* src = cast<const SCALAR_TYPE*>(srcAddress); \
160 *cast<jbyte*>(dstAddress) = value;
164 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress));
181 SWAP_FN(cast<SWAP_TYPE*>(dstAddress), src, count); /*NOLINT*/ \
183 env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); /*NOLINT*/ \
212 return get_unaligned<jshort>(cast<cons
[all...]
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DWrapper.java229 * Equivalent to {@code this.cast(this.zero(), type)}.
425 // return Wrapper.valueOf(type).cast(x, type);
438 public <T> T cast(Object x, Class<T> type) { method in class:Wrapper
444 * This is equivalent to {@link #cast}, except that it refuses to perform
453 // If the target wrapper is OBJECT, just do a reference cast.
459 type.cast(x);
466 return wtype.cast(x);
589 arrayType().cast(a); // throw NPE or CCE if bad type
598 arrayType().cast(a); // throw NPE or CCE if bad type
/libcore/ojluni/src/main/java/java/lang/
H A DClass.java512 * {@code Object} argument is non-null and can be cast to the
2421 * @param obj the object to be cast
2430 public T cast(Object obj) { method in class:Class
2437 return "Cannot cast " + obj.getClass().getName() + " to " + getName();
2442 * represented by the specified class object. Checks that the cast
2448 * {@code Class} objects that it is willing to accept. A cast would
2449 * generate a compile-time warning, as the correctness of the cast
2453 * @param <U> the type to cast this class object to
2454 * @param clazz the class of the type to cast this class object to
2455 * @return this {@code Class} object, cast t
[all...]

Completed in 891 milliseconds