8784: Fix test for latest firefox.
[arvados.git] / sdk / go / arvados / keep_block.go
1 package arvados
2
3 import (
4         "strconv"
5         "strings"
6 )
7
8 // SizedDigest is a minimal Keep block locator: hash+size
9 type SizedDigest string
10
11 // Size returns the size of the data block, in bytes.
12 func (sd SizedDigest) Size() int64 {
13         n, _ := strconv.ParseInt(strings.Split(string(sd), "+")[1], 10, 64)
14         return n
15 }