ContentID returns the ID of the underlying content.
()
| 109 | |
| 110 | // ContentID returns the ID of the underlying content. |
| 111 | func (i ID) ContentID() (id content.ID, compressed, ok bool) { |
| 112 | if i.indirection > 0 { |
| 113 | return content.EmptyID, false, false |
| 114 | } |
| 115 | |
| 116 | return i.cid, i.compression, true |
| 117 | } |
| 118 | |
| 119 | // IDsFromStrings converts strings to IDs. |
| 120 | func IDsFromStrings(str []string) ([]ID, error) { |
no outgoing calls