(userXattr []byte)
| 470 | } |
| 471 | |
| 472 | func userXattrCrc32cHash(userXattr []byte) string { |
| 473 | // If user xattr is empty then set hash to empty (feature has been disabled or doc doesn't have xattr) |
| 474 | if len(userXattr) == 0 { |
| 475 | return "" |
| 476 | } |
| 477 | return base.Crc32cHashString(userXattr) |
| 478 | } |
| 479 | |
| 480 | // Unmarshals a document from JSON data. The doc ID isn't in the data and must be given. Uses decode to ensure |
| 481 | // UseNumber handling is applied to numbers in the body. |
no test coverage detected