Skip to content

Some proposals #1

@RuedigerMoeller

Description

@RuedigerMoeller

I have built (like many others) a similar byte mem infrastructure at https://github.com/RuedigerMoeller/fast-serialization/tree/master/src/main/java/org/nustaq/offheap/bytez).

Some remarks
Bytes class:
I'd miss "put( Bytes b, int off, int len)"

Additionally, at application level i frequently had the need to map some other datastructure to act as a byte (examples: https://github.com/RuedigerMoeller/fast-serialization/tree/master/src/main/java/org/nustaq/offheap/bytez/bytesource)

as the Bytes interface is huge, by the time i required weaker forms of the interface, namely

I also have a "newInstance(long)" method on the Bytez class which creates a new Bytes instance of same underlying type (questionable, but avoids to pass along a factory/allocator instance all around the code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions