Skip to content

Why no WriteUnsignedInt/WriteUnsignedIntLE methods? #611

Open
@Himmelt

Description

@Himmelt

There are ReadUnsignedInt/ReadUnsignedIntLE/GetUnsignedInt/GetUnsignedIntLE/SetUnsignedInt/SetUnsignedIntLE methods, but no WriteUnsignedInt/WriteUnsignedIntLE ? why? How should I do to write an uint with little-endian to the ByteBuf ?

/// <summary>
/// Gets an unsigned integer at the current <see cref="ReaderIndex" /> and increases the <see cref="ReaderIndex" />
/// by <c>4</c> in this buffer.
/// </summary>
/// <exception cref="IndexOutOfRangeException">if <see cref="ReadableBytes" /> is less than <c>4</c></exception>
uint ReadUnsignedInt();
/// <summary>
/// Gets an unsigned integer at the current <see cref="ReaderIndex" /> in the Little Endian Byte Order and
/// increases the <see cref="ReaderIndex" /> by <c>4</c> in this buffer.
/// </summary>
/// <exception cref="IndexOutOfRangeException">if <see cref="ReadableBytes" /> is less than <c>4</c></exception>
uint ReadUnsignedIntLE();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions