Skip to content

stream: Implement BinaryStreamFormat#237

Open
german77 wants to merge 2 commits intoopen-ead:masterfrom
german77:streamFormat
Open

stream: Implement BinaryStreamFormat#237
german77 wants to merge 2 commits intoopen-ead:masterfrom
german77:streamFormat

Conversation

@german77
Copy link
Contributor

@german77 german77 commented Jan 14, 2026

Stream formats aren't that useful if the actual memory operations aren't implemented. This fixes fromHostXXX functions that referenced the wrong table.

BinaryStreamFormat::readF32 isn't matching. Floats are loaded different due casting from raw to float but I couldn't spot the error. https://decomp.me/scratch/L5MO9 Matched by fuzzy

BinaryStreamFormat::readString isn't matching. This one just feels wrong, the implementation I come up leaves me a lot of questions. The write operation just takes the smaller size and fills the rest with null terminators. https://decomp.me/scratch/jCek1


This change is Reviewable

@german77 german77 force-pushed the streamFormat branch 2 times, most recently from 7ba5a8c to 0009ae7 Compare January 15, 2026 04:29
Copy link
Contributor

@Fuzzy2319 Fuzzy2319 left a comment

Choose a reason for hiding this comment

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

I managed to get BinaryStreamFormat::readF32 matching sead::BinaryStreamFormat::readF32(sead::StreamSrc*, sead::Endian::Types) | decomp.me I will investigate further to avoid making everithing public.

@Fuzzy2319 made 1 comment.
Reviewable status: 0 of 4 files reviewed, all discussions resolved.

@MonsterDruide1
Copy link
Contributor

@Fuzzy2319 Did you find a better match?

Copy link
Contributor

@Fuzzy2319 Fuzzy2319 left a comment

Choose a reason for hiding this comment

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

sead::BinaryStreamFormat::readF32(sead::StreamSrc*, sead::Endian::Types) | decomp.me

@Fuzzy2319 made 1 comment.
Reviewable status: 0 of 4 files reviewed, all discussions resolved.

@german77
Copy link
Contributor Author

Rebased to include fuzzy changes. I had to work the solution a bit since it broke writeF32

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