I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit fb8244ee authored by zzz's avatar zzz
Browse files

javadoc

parent 045627a5
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,9 @@ public class I2NPMessageHandler { ...@@ -90,6 +90,9 @@ public class I2NPMessageHandler {
return lastRead(); return lastRead();
} }
/**
* Result is retreived with lastRead()
*/
public int readMessage(byte data[], int offset) throws I2NPMessageException { public int readMessage(byte data[], int offset) throws I2NPMessageException {
return readMessage(data, offset, data.length - offset); return readMessage(data, offset, data.length - offset);
} }
...@@ -98,6 +101,8 @@ public class I2NPMessageHandler { ...@@ -98,6 +101,8 @@ public class I2NPMessageHandler {
* Set a limit on the max to read from the data buffer, so that * Set a limit on the max to read from the data buffer, so that
* we can use a large buffer but prevent the reader from reading off the end. * we can use a large buffer but prevent the reader from reading off the end.
* *
* Result is retreived with lastRead()
*
* @param maxLen read no more than this many bytes from data starting at offset, even if it is longer * @param maxLen read no more than this many bytes from data starting at offset, even if it is longer
* must be at least 16 * must be at least 16
* @since 0.8.12 * @since 0.8.12
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment