com.kenai.jffi.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
The newest version!
package com.kenai.jffi;
public final class Util {
private Util() {}
/**
* Aligns an address to a boundary
*
* @param v The address to roundup
* @param a The boundary to align to.
* @return The aligned address.
*/
static int ffi_align(int v, int a) {
return ((v - 1) | (a - 1)) + 1;
}
}