Skip to content

751643992/Unsafe-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsafe

dummy jar of unsafe java apis for Android/Eclipse

sun.misc.Unsafe

final Field field = sun.misc.Unsafe.class.getDeclaredField("THE_ONE");
field.setAccessible(true);
sun.misc.Unsafe unsafe = (sun.misc.Unsafe)field.get(null);

libcore.io.Memory

public static void alignedCopy(long dst, long src, long length) {
	for (length /= 4; length > 0; --length, dst += 4, src += 4) {
		libcore.io.Memory.pokeInt(dst,
				libcore.io.Memory.peekInt(src, false), false);
	}
}

About

dummy jar of unsafe java apis for Android/Eclipse

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages