NativeSizeBuffer image_row_pitch, NativeSizeBuffer image_slice_pitch,
int num_events_in_wait_list,
NativeSizeBuffer event_wait_list, NativeSizeBuffer event, IntBuffer errcode_ret) {
if (origin != null && !origin.isDirect()) {
throw new CLException("Argument \"origin\" was not a direct buffer");
}
if (range != null && !range.isDirect()) {
throw new CLException("Argument \"range\" was not a direct buffer");
}
if (image_row_pitch != null && !image_row_pitch.isDirect()) {
throw new CLException("Argument \"image_row_pitch\" was not a direct buffer");
}
if (image_slice_pitch != null && !image_slice_pitch.isDirect()) {
throw new CLException("Argument \"image_slice_pitch\" was not a direct buffer");
}
if (event_wait_list != null && !event_wait_list.isDirect()) {
throw new CLException("Argument \"event_wait_list\" was not a direct buffer");
}
if (event != null && !event.isDirect()) {
throw new CLException("Argument \"event\" was not a direct buffer");
}
if (errcode_ret != null && !errcode_ret.isDirect()) {
throw new CLException("Argument \"errcode_ret\" was not a direct buffer");
}
final long mapImageAddress = addressTable._addressof_clEnqueueMapImage;
if (mapImageAddress == 0) {
throw new UnsupportedOperationException("Method not available");