Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + var MaxEntrySize = maxEntrySize() + func BlockPresenceSize(c cid.Cid) int + type BitSwapMessage interface + AddBlock func(blocks.Block) + AddBlockPresence func(cid.Cid, pb.Message_BlockPresenceType) + AddDontHave func(cid.Cid) + AddEntry func(key cid.Cid, priority int32, wantType pb.Message_Wantlist_WantType, ...) int + AddHave func(cid.Cid) + BlockPresences func() []BlockPresence + Blocks func() []blocks.Block + Cancel func(key cid.Cid) int + Clone func() BitSwapMessage + DontHaves func() []cid.Cid + Empty func() bool + Full func() bool + Haves func() []cid.Cid + Loggable func() map[string]interface{} + PendingBytes func() int32 + Remove func(key cid.Cid) + Reset func(bool) + SetPendingBytes func(int32) + Size func() int + Wantlist func() []Entry + func FromMsgReader(r msgio.Reader) (BitSwapMessage, error) + func FromNet(r io.Reader) (BitSwapMessage, error) + func New(full bool) BitSwapMessage + type BlockPresence struct + Cid cid.Cid + Type pb.Message_BlockPresenceType + type Entry struct + Cancel bool + SendDontHave bool + func (e *Entry) Size() int + func (e *Entry) ToPB() pb.Message_Wantlist_Entry + type Exportable interface + ToNetV0 func(w io.Writer) error + ToNetV1 func(w io.Writer) error + ToProtoV0 func() *pb.Message + ToProtoV1 func() *pb.Message