mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 13:32:52 -04:00
25 lines
356 B
Go
25 lines
356 B
Go
package i2np
|
|
|
|
/*
|
|
I2P I2NP Data
|
|
https://geti2p.net/spec/i2np
|
|
Accurate for version 0.9.28
|
|
|
|
+----+----+----+----+----+-//-+
|
|
| length | data... |
|
|
+----+----+----+----+----+-//-+
|
|
|
|
length ::
|
|
4 bytes
|
|
length of the payload
|
|
|
|
data ::
|
|
$length bytes
|
|
actual payload of this message
|
|
*/
|
|
|
|
type Data struct {
|
|
Length int
|
|
Data []byte
|
|
}
|