FromProto sets a protobuf BitArray to the given pointer.
(protoBitArray *tmprotobits.BitArray)
| 432 | |
| 433 | // FromProto sets a protobuf BitArray to the given pointer. |
| 434 | func (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 | } |
no outgoing calls