Not the latest frame layout, but close. Does not include - fragmentation / reassembly - encode should remove Type param and have it as part of method name (1 encode per type?)
Not thread-safe. Assumed to be used single-threaded
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static boolean | |
| public static final int | FLAGS_C
(C)omplete: bit to indicate stream completion ( |
| public static final int | FLAGS_F
(F)ollows: More fragments follow this fragment (in case of fragmented REQUEST_x or PAYLOAD frames) |
| public static final int | FLAGS_I
(I)gnore flag: a value of 0 indicates the protocol can't ignore this frame |
| public static final int | FLAGS_M
(M)etadata flag: a value of 1 indicates the frame contains metadata |
| public static final int | FLAGS_N
(N)ext: bit to indicate payload or metadata present ( |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ByteBuf | |
| pack-priv static ByteBuf | |
| public static void | |
| public static int | |
| public static FrameType | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static FrameType | nativeFrameType(ByteBuf byteBuf)
faster version of |
| public static int | |
| public static int |
| DISABLE_FRAME_TYPE_CHECK | back to summary |
|---|---|
| public static final String DISABLE_FRAME_TYPE_CHECK | |
| disableFrameTypeCheck | back to summary |
|---|---|
| private static boolean disableFrameTypeCheck | |
| FLAGS_C | back to summary |
|---|---|
| public static final int FLAGS_C (C)omplete: bit to indicate stream completion ( | |
| FLAGS_F | back to summary |
|---|---|
| public static final int FLAGS_F (F)ollows: More fragments follow this fragment (in case of fragmented REQUEST_x or PAYLOAD frames) | |
| FLAGS_I | back to summary |
|---|---|
| public static final int FLAGS_I (I)gnore flag: a value of 0 indicates the protocol can't ignore this frame | |
| FLAGS_M | back to summary |
|---|---|
| public static final int FLAGS_M (M)etadata flag: a value of 1 indicates the frame contains metadata | |
| FLAGS_N | back to summary |
|---|---|
| public static final int FLAGS_N (N)ext: bit to indicate payload or metadata present ( | |
| FRAME_FLAGS_MASK | back to summary |
|---|---|
| private static final int FRAME_FLAGS_MASK | |
| FRAME_TYPE_BITS | back to summary |
|---|---|
| private static final int FRAME_TYPE_BITS | |
| FRAME_TYPE_SHIFT | back to summary |
|---|---|
| private static final int FRAME_TYPE_SHIFT | |
| HEADER_SIZE | back to summary |
|---|---|
| private static final int HEADER_SIZE | |
| FrameHeaderCodec | back to summary |
|---|---|
| private FrameHeaderCodec() | |
| encode | back to summary |
|---|---|
| public static ByteBuf encode(final ByteBufAllocator allocator, final int streamId, final FrameType frameType, int flags) | |
| encodeStreamZero | back to summary |
|---|---|
| pack-priv static ByteBuf encodeStreamZero(final ByteBufAllocator allocator, final FrameType frameType, int flags) | |
| ensureFrameType | back to summary |
|---|---|
| public static void ensureFrameType(final FrameType frameType, ByteBuf byteBuf) | |
| flags | back to summary |
|---|---|
| public static int flags(final ByteBuf byteBuf) | |
| frameType | back to summary |
|---|---|
| public static FrameType frameType(ByteBuf byteBuf) | |
| hasComplete | back to summary |
|---|---|
| public static boolean hasComplete(ByteBuf byteBuf) | |
| hasFollows | back to summary |
|---|---|
| public static boolean hasFollows(ByteBuf byteBuf) | |
| hasMetadata | back to summary |
|---|---|
| public static boolean hasMetadata(ByteBuf byteBuf) | |
| nativeFrameType | back to summary |
|---|---|
| public static FrameType nativeFrameType(ByteBuf byteBuf) faster version of | |
| size | back to summary |
|---|---|
| public static int size() | |
| streamId | back to summary |
|---|---|
| public static int streamId(ByteBuf byteBuf) | |