}
protected static long getSizeImpl(CLContext context, long id) {
NativeSizeBuffer pb = NativeSizeBuffer.allocateDirect(1);
CLMemObjBinding binding = context.getPlatform().getMemObjectBinding();
int ret = binding.clGetMemObjectInfo(id, CL_MEM_SIZE, NativeSizeBuffer.elementSize(), pb.getBuffer(), null);
checkForError(ret, "can not obtain buffer info");
return pb.get();
}
protected static CL getCL(CLContext context) {