diff options
Diffstat (limited to 'hv-collector-domain/src')
-rw-r--r-- | hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrame.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrame.kt b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrame.kt index 906441b9..5bd63d8b 100644 --- a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrame.kt +++ b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrame.kt @@ -86,7 +86,9 @@ data class WireFrame(val payload: ByteBuf, return WireFrame(payload, mark, majorVersion, minorVersion, payloadSize) } - private const val HEADER_SIZE = 3 + java.lang.Integer.BYTES + private const val HEADER_SIZE = + 3 * java.lang.Byte.BYTES + + 1 * java.lang.Integer.BYTES private const val FF_BYTE: Short = 0xFF private const val SUPPORTED_MAJOR_VERSION: Short = 1 } |