Added missing null-termination checks.

This commit is contained in:
Ioannis Tsakpinis 2013-01-25 15:26:55 +02:00
parent d721194cf3
commit 6b68ff17b8
2 changed files with 4 additions and 4 deletions

View File

@ -1149,11 +1149,11 @@ public interface CL10 {
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddress(@Check("1") @Const @cl_char ByteBuffer func_name);
CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated @Const @cl_char ByteBuffer func_name);
@Alternate("clGetExtensionFunctionAddress")
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddress(CharSequence func_name);
CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated CharSequence func_name);
}

View File

@ -435,12 +435,12 @@ public interface CL12 {
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform,
@Check("1") @Const @cl_char ByteBuffer func_name);
@NullTerminated @Const @cl_char ByteBuffer func_name);
@Alternate("clGetExtensionFunctionAddressForPlatform")
@Private
@PointerWrapper("void *")
CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform,
CharSequence func_name);
@NullTerminated CharSequence func_name);
}