MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / WordLen

Function WordLen

pkg/util/encoding/decimal.go:739–741  ·  view source on GitHub ↗

WordLen returns the size in bytes of the given array of Words.

(nat []big.Word)

Source from the content-addressed store, hash-verified

737
738// WordLen returns the size in bytes of the given array of Words.
739func WordLen(nat []big.Word) int {
740 return len(nat) * bigWordSize
741}
742
743// copyWords was adapted from math/big/nat.go. It writes the value of
744// nat into buf using big-endian encoding. len(buf) must be >= len(nat)*bigWordSize.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…