github.com/lirm/aeron-go@v0.0.0-20230415210743-920325491dc4/aeron/logbuffer/DataFrameHeader.go (about) 1 /* 2 Copyright 2016 Stanislav Liberman 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package logbuffer 18 19 var DataFrameHeader = struct { 20 FrameLengthFieldOffset int32 21 VersionFieldOffset int32 22 FlagsFieldOffset int32 23 TypeFieldOffset int32 24 TermOffsetFieldOffset int32 25 SessionIDFieldOffset int32 26 StreamIDFieldOffset int32 27 TermIDFieldOffset int32 28 ReservedValueFieldOffset int32 29 DataOffset int32 30 31 Length int32 32 33 TypePad uint16 34 TypeData uint16 35 TypeNAK uint16 36 TypeSM uint16 37 TypeErr uint16 38 TypeSetup uint16 39 TypeExt uint16 40 41 CurrentVersion int8 42 }{ 43 0, 44 4, 45 5, 46 6, 47 8, 48 12, 49 16, 50 20, 51 24, 52 32, 53 54 32, 55 56 0x00, 57 0x01, 58 0x02, 59 0x03, 60 0x04, 61 0x05, 62 0xFFFF, 63 64 0x0, 65 }