Versions in this module Expand all Collapse all v3 v3.1.0 Feb 6, 2026 GO-2026-4513 GO-2026-4513: Denial of service in github.com/shamaton/msgpack v3.0.0 Jan 15, 2026 GO-2026-4513 GO-2026-4513: Denial of service in github.com/shamaton/msgpack Changes in this version + type Decoder interface + AsValue func(offset int, k reflect.Kind, d *[]byte) (interface{}, int, error) + Code func() int8 + IsType func(offset int, d *[]byte) bool + type DecoderCommon struct + func (cd *DecoderCommon) ReadSize1(index int, d *[]byte) (byte, int) + func (cd *DecoderCommon) ReadSize2(index int, d *[]byte) ([]byte, int) + func (cd *DecoderCommon) ReadSize4(index int, d *[]byte) ([]byte, int) + func (cd *DecoderCommon) ReadSize8(index int, d *[]byte) ([]byte, int) + func (cd *DecoderCommon) ReadSizeN(index, n int, d *[]byte) ([]byte, int) + type Encoder interface + CalcByteSize func(value reflect.Value) (int, error) + Code func() int8 + Type func() reflect.Type + WriteToBytes func(value reflect.Value, offset int, bytes *[]byte) int + type EncoderCommon struct + func (c *EncoderCommon) SetByte1Int(code, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte1Int64(value int64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte1Uint64(value uint64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte2Int(value int, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte2Int64(value int64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte2Uint64(value uint64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte4Int(value int, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte4Int64(value int64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte4Uint32(value uint32, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte4Uint64(value uint64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte8Int64(value int64, offset int, d *[]byte) int + func (c *EncoderCommon) SetByte8Uint64(value uint64, offset int, d *[]byte) int + func (c *EncoderCommon) SetBytes(bs []byte, offset int, d *[]byte) int + type StreamDecoder interface + Code func() int8 + IsType func(code byte, innerType int8, dataLength int) bool + ToValue func(code byte, data []byte, k reflect.Kind) (any, error) + type StreamEncoder interface + Code func() int8 + Type func() reflect.Type + Write func(w StreamWriter, value reflect.Value) error + type StreamWriter struct + func CreateStreamWriter(w io.Writer, buf *common.Buffer) StreamWriter + func (w *StreamWriter) WriteByte1Int(value int) error + func (w *StreamWriter) WriteByte1Int64(value int64) error + func (w *StreamWriter) WriteByte1Uint64(value uint64) error + func (w *StreamWriter) WriteByte2Int(value int) error + func (w *StreamWriter) WriteByte2Int64(value int64) error + func (w *StreamWriter) WriteByte2Uint64(value uint64) error + func (w *StreamWriter) WriteByte4Int(value int) error + func (w *StreamWriter) WriteByte4Int64(value int64) error + func (w *StreamWriter) WriteByte4Uint32(value uint32) error + func (w *StreamWriter) WriteByte4Uint64(value uint64) error + func (w *StreamWriter) WriteByte8Int64(value int64) error + func (w *StreamWriter) WriteByte8Uint64(value uint64) error + func (w *StreamWriter) WriteBytes(bs []byte) error Other modules containing this package github.com/shamaton/msgpack github.com/shamaton/msgpack/v2