Skip to content

chore: Add codec to encode/decode TIC frames to/from byte array#18

Merged
MathieuSabarthes merged 3 commits into
feature/architecture-redesignfrom
chore/codec_bytes_ticframe
Dec 19, 2025
Merged

chore: Add codec to encode/decode TIC frames to/from byte array#18
MathieuSabarthes merged 3 commits into
feature/architecture-redesignfrom
chore/codec_bytes_ticframe

Conversation

@JBO5m4r7135

Copy link
Copy Markdown
Collaborator

No description provided.

public enum TICFrameDelimiter {
/** Begin byte (STX, 0x02) for TIC frames. */
BEGIN((byte) 0x02),
/** Begin byte (STX, 0x02) for TIC frames. */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
/** Begin byte (STX, 0x02) for TIC frames. */
/** End byte (ETX, 0x03) for TIC frames. */

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Corrigé dans ce commit

public enum TICGroupDelimiter {
/** Begin byte (Line Feed, 0x0A) for TIC groups. */
BEGIN((byte) 0x0A),
/** Begin byte (Carriage Return, 0x0D) for TIC groups. */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
/** Begin byte (Carriage Return, 0x0D) for TIC groups. */
/** End byte (Carriage Return, 0x0D) for TIC groups. */

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Corrigé dans ce commit

}

public static int getOffsetChecksum(byte[] groupBuffer) {
checkBuffer(groupBuffer);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tu peux utiliser
Objects.requireNonNull(groupBuffer, "groupBuffer must not be null")
Pour vérifier et envoyer une exception en une ligne

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Corrigé dans ce commit

@MathieuSabarthes
MathieuSabarthes merged commit 5354518 into feature/architecture-redesign Dec 19, 2025
2 checks passed
@MathieuSabarthes
MathieuSabarthes deleted the chore/codec_bytes_ticframe branch December 19, 2025 09:34
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