Skip to content

Commit ce5578c

Browse files
committed
Javadoc nits
1 parent b2ca7db commit ce5578c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/velocity/org/bridj/Pointer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,9 +1937,9 @@ public void updateBuffer(Buffer buffer) {
19371937
//-- primitive (no bool): $prim.Name --
19381938

19391939
/**
1940-
* Create a pointer to the memory location used by a direct NIO ${prim.BufferName}.<br>
1941-
* If the NIO ${prim.BufferName} is not direct, then its backing Java array is copied to some native memory and will never be updated by changes to the native memory (calls {@link Pointer#pointerTo${prim.CapName}s(${prim.Name}[])}), unless a call to {@link Pointer#updateBuffer(Buffer)} is made manually.<br>
1942-
* The returned pointer (and its subsequent views returned by {@link Pointer#offset(long)} or {@link Pointer#next(long)}) can be used safely : it retains a reference to the original NIO buffer, so that this latter cannot be garbage collected before the pointer.</br>
1940+
* Create a pointer to the memory location used by a direct NIO ${prim.BufferName}.<br/>
1941+
* If the NIO ${prim.BufferName} is not direct, then its backing Java array is copied to some native memory and will never be updated by changes to the native memory (calls {@link Pointer#pointerTo${prim.CapName}s(${prim.Name}[])}), unless a call to {@link Pointer#updateBuffer(Buffer)} is made manually.<br/>
1942+
* The returned pointer (and its subsequent views returned by {@link Pointer#offset(long)} or {@link Pointer#next(long)}) can be used safely : it retains a reference to the original NIO buffer, so that this latter cannot be garbage collected before the pointer.<br>
19431943
*/
19441944
public static Pointer<${prim.WrapperName}> pointerTo${prim.CapName}s(${prim.BufferName} buffer) {
19451945
if (buffer == null)

0 commit comments

Comments
 (0)