Skip to content

Allow to set bigger size for circular buffer #11

@TechInterMezzo

Description

@TechInterMezzo

At the moment the circular buffer size is hardcoded to 4096:
https://github.com/Reloaded-Project/Reloaded.Injector/blob/master/Source/Reloaded.Injector/Injector.cs#L40

Would it be possible to make that an optional parameter for the Injector constructor?
I want to use a struct as a remote call argument that is too big for the current circular buffer.

EDIT:
And maybe it would be good to check parameterPtr after this line:
https://github.com/Reloaded-Project/Reloaded.Injector/blob/master/Source/Reloaded.Injector/Injector.cs#L115
If it is zero then the parameter struct couldn't be fit into the circular buffer and an exception should be thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions