[Chapel Merge] Enable bytes serialization

Branch: refs/heads/main
Revision: 431d0c9
Author: e-kayrakli
Link: Unavailable
Log Message:

Merge pull request #18666 from e-kayrakli/bytes-serialization

Enable bytes serialization

This PR adds serialization/deserialization support to bytes.

Resolves https://github.com/Cray/chapel-private/issues/2613.

Specifically:

  • Moves some serialization helpers from String.chpl to
    BytesStringCommon.chpl

  • Adds chpl__serialize/chpl__deserialize to bytes.

  • Adds new tests.

[Reviewed by @aconsroe-hpe]

Test:

  • [x] types/bytes

  • [x] full

    Modified Files:
    A test/types/bytes/serialization.chpl
    A test/types/bytes/serialization.good
    A test/types/bytes/serialization.numlocales
    A test/types/bytes/serialization.skipif
    A test/types/string/serializationCommCounts-16char.good
    A test/types/string/serializationCommCounts-4char.good
    A test/types/string/serializationCommCounts.chpl
    A test/types/string/serializationCommCounts.compopts
    A test/types/string/serializationCommCounts.execopts
    A test/types/string/serializationCommCounts.numlocales
    A test/types/string/serializationCommCounts.skipif
    M modules/internal/Bytes.chpl
    M modules/internal/BytesStringCommon.chpl
    M modules/internal/String.chpl
    M test/functions/operatorOverloads/operatorMethods/genericsInstantiationBad.good

    Compare: Comparing 19b9abe499cb...431d0c91a398 · chapel-lang/chapel · GitHub