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

Add Generalised Tooling Support #129

Merged
merged 11 commits into from
Aug 13, 2024
Merged

Add Generalised Tooling Support #129

merged 11 commits into from
Aug 13, 2024

Conversation

sasial-dev
Copy link
Collaborator

@sasial-dev sasial-dev commented Aug 10, 2024

Blocked by Pyseph/PacketProfiler#8

cc @Pyseph

For tools such as PacketProfiler, there is a need for ability to deserialise a zap buffer while 'in transit' for debugging.
This PR aims to create a standardised way to do this, accepting a function with all the remote's parameters and returning a table with the name and arguments such as:

			table.insert(events, {
				Name = "RemoteName",
				Arguments = { value }
			})

self.push_line("local len = buffer.len(incoming_buff)");
self.push("\n");

self.push_tydecls();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

One of the major intents was not to touch the rest of the codebase (e.g irgen), and that meant that the types functions have to be inside the function. Let me know if you think this is an issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

RobloxStudio-njRe63Fu@2x

This doesn't seem to be as slow as I was expecting it to be...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jackdotink - before I merge can you confirm if this is ok?

Copy link
Member

Choose a reason for hiding this comment

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

lgtm

@sasial-dev sasial-dev linked an issue Aug 11, 2024 that may be closed by this pull request
@sasial-dev sasial-dev merged commit 43112fb into 0.6.x Aug 13, 2024
2 checks passed
@sasial-dev sasial-dev deleted the tooling branch August 13, 2024 08:19
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.

[FEAT] Provide support for Packet Profiler
2 participants