Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding python Unpack implementation #16

Merged
merged 12 commits into from
May 3, 2023
Merged

Adding python Unpack implementation #16

merged 12 commits into from
May 3, 2023

Conversation

Mzack9999
Copy link
Member

@Mzack9999 Mzack9999 commented Apr 15, 2023

Description

This PR adds the following DSL functions:

  • Python unpack for one type with endianess (ex >I)
  • xor between bytes sequences/strings of same length

Closes

@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Apr 15, 2023
@Mzack9999 Mzack9999 self-assigned this Apr 15, 2023
@Mzack9999 Mzack9999 marked this pull request as draft April 15, 2023 20:02
@Mzack9999 Mzack9999 linked an issue Apr 16, 2023 that may be closed by this pull request
@Mzack9999 Mzack9999 marked this pull request as ready for review April 16, 2023 16:22
@Mzack9999 Mzack9999 marked this pull request as draft April 26, 2023 08:58
@Mzack9999 Mzack9999 marked this pull request as ready for review April 26, 2023 09:31
Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

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

lgtm !

  • we probably need to add documentation for this in README.md
  • I think we should also include below notes in docs since this is unpack i.e C -> golang

https://github.com/Mzack9999/gostruct/blob/30b70932da81da179c2da88daffd06db50d0a25e/struct.go#L3-L17

Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

we can update the readme to include examples for -

  • unpack
  • xor
  • llm_prompt

@Mzack9999 Mzack9999 requested a review from ehsandeep May 2, 2023 23:07
@Mzack9999 Mzack9999 dismissed ehsandeep’s stale review May 2, 2023 23:08

changes were implemented

@ehsandeep ehsandeep merged commit 77cbebc into main May 3, 2023
5 checks passed
@ehsandeep ehsandeep deleted the feat-python-unpack branch May 3, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add types/structs pack/unpack
3 participants