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

Method FromProto

libs/bits/bit_array.go:434–444  ·  view source on GitHub ↗

FromProto sets a protobuf BitArray to the given pointer.

(protoBitArray *tmprotobits.BitArray)

Source from the content-addressed store, hash-verified

432
433// FromProto sets a protobuf BitArray to the given pointer.
434func (bA *BitArray) FromProto(protoBitArray *tmprotobits.BitArray) {
435 if protoBitArray == nil {
436 bA = nil
437 return
438 }
439
440 bA.Bits = int(protoBitArray.Bits)
441 if len(protoBitArray.Elems) > 0 {
442 bA.Elems = protoBitArray.Elems
443 }
444}

Callers 1

TestBitArrayProtoBufFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestBitArrayProtoBufFunction · 0.36