Skip to content

Dev/u8 array#6

Open
Poofjunior wants to merge 7 commits into
masterfrom
dev/u8_array
Open

Dev/u8 array#6
Poofjunior wants to merge 7 commits into
masterfrom
dev/u8_array

Conversation

@Poofjunior

@Poofjunior Poofjunior commented Feb 21, 2025

Copy link
Copy Markdown
Collaborator

Add WriteU8ArrayMessage so that we can write arrays per protocol spec (or write packed binary data).

Let's merge #5 first.

Comment thread pyharp/messages.py

class ReadS32HarpMessage(ReadHarpMessage):
def __init__(self, address: int):
super().__init__(PayloadType.S32, address)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a duplicate, no?

Comment thread pyharp/messages.py

def WriteS32Array(address: int, value: list[int]) -> WriteS32HarpMessage:
return WriteS32ArrayHarpMessage(address, value)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a matching ReadS32Array, for completeness and parity?

Comment thread pyharp/messages.py
return int.from_bytes(self._frame[5:9], byteorder="little", signed=True)


class WriteU8ArrayMessage(WriteHarpMessage):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be WriteU8ArrayHarpMessage instead of WriteU8ArrayMessage for naming consistency?

@Poofjunior Poofjunior requested a review from Prattbuw February 12, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants