···6060// - Close-No: the caller must not close the returned value directly.
6161// - Close-Idem: repeated Close calls are safe.
6262//
6363+// Mutation labels:
6464+//
6565+// - Mut-Never: returned values must not be mutated.
6666+//
6367// Unless Close-Idem is specified, repeated Close calls are undefined behavior.
6468//
6569// Unless a doc comment explicitly states otherwise, these labels describe the
+2-3
object/id/objectid_byte.go
···991010// RawBytes returns a direct byte slice view of the object ID bytes.
1111//
1212-// The returned slice aliases the object ID's internal storage. Callers MUST
1313-// treat it as read-only and MUST NOT modify its contents.
1212+// Use Bytes when an independent copy is required.
1413//
1515-// Use Bytes when an independent copy is required.
1414+// Labels: Mut-Never.
1615func (id *ObjectID) RawBytes() []byte {
1716 size := id.Algorithm().Size()
1817