Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

How are unsigned integers being stored in rosjava messages? #3

Description

@chadrockey

@damonkohler @stonier

It looks like uint32 and uint64 are being stored in the same integers as their signed counterparts: int and long. Can anyone confirm that's the case?

https://github.com/rosjava/rosjava_bootstrap/blob/hydro/message_generation/src/main/java/org/ros/internal/message/RawMessage.java#L112

Java doesn't have unsigned integers, so at the very least uint16 should be stored in an 'int' and uint32 should be stored in a 'long', and uint64 should be...???

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions