Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 16, 2024
1 parent 5fa7e8b commit dacb18f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions wpiutil/src/main/java/edu/wpi/first/util/struct/Struct.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ default void unpackInto(T out, ByteBuffer bb) {
}

/**
* Deserializes an array from a raw struct serialized ByteBuffer starting at the current
* position. Will increment the ByteBuffer position by size * struct.size() bytes. Will not
* otherwise modify the ByteBuffer (e.g. byte order will not be changed).
* Deserializes an array from a raw struct serialized ByteBuffer starting at the current position.
* Will increment the ByteBuffer position by size * struct.size() bytes. Will not otherwise modify
* the ByteBuffer (e.g. byte order will not be changed).
*
* @param <T> Object type
* @param bb ByteBuffer
Expand All @@ -135,7 +135,6 @@ static <T> T[] unpackArray(ByteBuffer bb, int size, Struct<T> struct) {
return arr;
}


/**
* Deserializes a double array from a raw struct serialized ByteBuffer starting at the current
* position. Will increment the ByteBuffer position by size * kSizeDouble bytes. Will not
Expand All @@ -155,8 +154,8 @@ static double[] unpackDoubleArray(ByteBuffer bb, int size) {

/**
* Puts array contents to a ByteBuffer starting at the current position. Will increment the
* ByteBuffer position by size * struct.size() bytes. Will not otherwise modify the ByteBuffer (e.g.
* byte order will not be changed).
* ByteBuffer position by size * struct.size() bytes. Will not otherwise modify the ByteBuffer
* (e.g. byte order will not be changed).
*
* @param <T> Object type
* @param bb ByteBuffer
Expand Down

0 comments on commit dacb18f

Please sign in to comment.