Skip to content

Make ByteData constructor/factory take a default endianness. #30783

Open
@lrhn

Description

@lrhn

Currently all methods of ByteData takes an optional endianness which defaults to Endianness.BIG_ENDIAN.
That's highly annoying when you are working with the class on a little-endian platform because you have to pass the optional argument to every method-call.

Remove BIG_ENDIAN as default value from methods, let them use the specified default (which can then default to big-endian).
This might be problematic on JavaScript because the underlying DataView class does not have a default-endianness field we can store it in, if we use that object directly instead of wrapping it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-llibrary-typed-datatype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions