Lines Matching refs:size
55 offset, size, err := findSymbol(file, symbol)
60 if uint64(len(value))+1 > size {
61 return fmt.Errorf("value length %d overflows symbol size %d", len(value), size)
66 expected := make([]byte, size)
67 existing := make([]byte, size)
79 buf := make([]byte, size)
86 offset, size, err := findSymbol(file, symbol)
91 if size != 8 {
92 return fmt.Errorf("symbol %q is not a uint64, it is %d bytes long", symbol, size)
138 size := symbol.Size
139 if size == 0 {
151 size = end - symbol.Addr
156 return uint64(offset), uint64(size), nil