Documentation
¶
Index ¶
- func FromContextCurItem(ctx context.Context) (int, bool)
- func FromContextLastItem(ctx context.Context) (bool, bool)
- func NewContextCurItem(ctx context.Context, u int) context.Context
- func NewContextLastItem(ctx context.Context, u bool) context.Context
- func WithEncoding(encoding string) utils.WithReaderWriterArgs
- type FieldCommons
- func (FieldCommons[T]) ExtractByteOrder(readerWriterArgs ...utils.WithReaderWriterArgs) *binary.ByteOrder
- func (FieldCommons[T]) SwitchParseByteOrderIfNecessary(ctx context.Context, runnable func(context.Context) (T, error), ...) (T, error)
- func (FieldCommons[T]) SwitchParseByteOrderIfNecessarySerializeWrapped(ctx context.Context, runnable func(context.Context) error, ...) error
- type PositionMover
- type WithOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContextCurItem ¶
FromContextCurItem returns the last item flag value stored in ctx, if any.
func FromContextLastItem ¶
FromContextLastItem returns the last item flag value stored in ctx, if any.
func NewContextCurItem ¶
NewContextCurItem returns a new Context that carries value u.
func NewContextLastItem ¶
NewContextLastItem returns a new Context that carries value u.
func WithEncoding ¶
func WithEncoding(encoding string) utils.WithReaderWriterArgs
Types ¶
type FieldCommons ¶
type FieldCommons[T any] struct { }
func (FieldCommons[T]) ExtractByteOrder ¶
func (FieldCommons[T]) ExtractByteOrder(readerWriterArgs ...utils.WithReaderWriterArgs) *binary.ByteOrder
func (FieldCommons[T]) SwitchParseByteOrderIfNecessary ¶
func (FieldCommons[T]) SwitchParseByteOrderIfNecessarySerializeWrapped ¶
type PositionMover ¶
type WithOption ¶
type WithOption = utils.WithReaderWriterArgs
func WithByteOrder ¶
func WithByteOrder(byteOrder binary.ByteOrder) WithOption
func WithSerializationContext ¶
func WithSerializationContext(context string) WithOption
Click to show internal directories.
Click to hide internal directories.