Skip to content

Commit

Permalink
Fix references to dst param that should be src
Browse files Browse the repository at this point in the history
Fixes #348.
  • Loading branch information
headius authored Oct 22, 2024
1 parent 8f4c874 commit 683b853
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/jnr/ffi/Pointer.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, byte[] src, int idx, int len);
Expand All @@ -437,7 +437,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, short[] src, int idx, int len);
Expand All @@ -463,7 +463,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, int[] src, int idx, int len);
Expand All @@ -489,7 +489,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, long[] src, int idx, int len);
Expand All @@ -515,7 +515,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, float[] src, int idx, int len);
Expand All @@ -541,7 +541,7 @@ public String toString() {
*
* @param offset the offset from the start of the memory this {@code Pointer} represents at which the first value will be written.
* @param src the array to get values from.
* @param idx the start index in the {@code dst} array to begin reading values.
* @param idx the start index in the {@code src} array to begin reading values.
* @param len the number of values to be written.
*/
abstract public void put(long offset, double[] src, int idx, int len);
Expand Down

0 comments on commit 683b853

Please sign in to comment.