MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / ToProto

Method ToProto

libs/bits/bit_array.go:422–431  ·  view source on GitHub ↗

ToProto converts BitArray to protobuf

()

Source from the content-addressed store, hash-verified

420
421// ToProto converts BitArray to protobuf
422func (bA *BitArray) ToProto() *tmprotobits.BitArray {
423 if bA == nil || len(bA.Elems) == 0 {
424 return nil
425 }
426
427 return &tmprotobits.BitArray{
428 Bits: int64(bA.Bits),
429 Elems: bA.Elems,
430 }
431}
432
433// FromProto sets a protobuf BitArray to the given pointer.
434func (bA *BitArray) FromProto(protoBitArray *tmprotobits.BitArray) {

Callers 6

ReceiveEnvelopeMethod · 0.95
ReceiveEnvelopeMethod · 0.95
TestMsgToProtoFunction · 0.95
TestConsMsgsVectorsFunction · 0.95
SaveLightBlockMethod · 0.45
TestBitArrayProtoBufFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestMsgToProtoFunction · 0.76
TestConsMsgsVectorsFunction · 0.76
TestBitArrayProtoBufFunction · 0.36