Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
Message (bytes) => Set(HeaderKey, HeaderLength, Value), ValueLength, Value
  Set =>
	HeaderKey  HeadersLength => int32 <----------------- int key of the header
    HeaderLength => int32 <-------------- NEW [optional] size of the byte[] of the serialised headers headerif valueheaders
    HeaderHeaders => bytes <--------------------- NEW [optional] serialised form of the header value
 headers Map<int, byte[]>
    ValueLength => int32 <----------------- length of the values
 
    Value => bytes
 
Headers (bytes) => Set(Key, ValueLength, Value)
  Set =>
	Key => int32 <---------------------- NEW int key of the header
    ValueLength => int32 <-------------- NEW size of the byte[] of the serialised header value
    Value => bytes <-------------------- NEW serialised form of the header value