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 Entity Saving/Reading #638

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add Entity Saving/Reading #638

wants to merge 3 commits into from

Conversation

Snowiiii
Copy link
Collaborator

@Snowiiii Snowiiii commented Mar 17, 2025

Description

Adds Entity Saving/Reading

Testing

Please follow our Coding Guidelines

}

/// Used for Saving
pub trait DataToBytes
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be named something more specific

}

/// Used for Reading
pub trait BytesToData
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be named something more specific

}

#[async_trait]
impl ChunkSerializer for AnvilEntityFormat {
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably want to create a brand new serializer instead of using the chunk serializer. ChunkFileManager can be probably renamed to FileManager. Then we can have FileManager<EntitySerializer> instead of ChunkSerializer

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now sure what you mean, Do we want to fully replace ChunkSerializer ?. I mean its pretty different then FileManager and is a trait

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.

2 participants