Added missing null-termination checks.
This commit is contained in:
parent
d721194cf3
commit
6b68ff17b8
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
Loading…
Reference in New Issue