Raw returns the raw checksum value if set.
()
| 388 | |
| 389 | // Raw returns the raw checksum value if set. |
| 390 | func (c Checksum) Raw() []byte { |
| 391 | if !c.IsSet() { |
| 392 | return nil |
| 393 | } |
| 394 | return c.r |
| 395 | } |
| 396 | |
| 397 | // CompositeChecksum returns the composite checksum of all provided parts. |
| 398 | func (c ChecksumType) CompositeChecksum(p []ObjectPart) (*Checksum, error) { |