Skip to content

fix: EstimateMemoryUsage returns size_t now#1729

Merged
devsnek merged 1 commit intomainfrom
devsnek-patch-1
Mar 6, 2025
Merged

fix: EstimateMemoryUsage returns size_t now#1729
devsnek merged 1 commit intomainfrom
devsnek-patch-1

Conversation

@devsnek
Copy link
Member

@devsnek devsnek commented Mar 5, 2025

No description provided.

) -> int {
-1
) -> size_t {
usize::MAX // ExternalStringResource::kDefaultMemoryEstimate
Copy link
Member

Choose a reason for hiding this comment

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

can we not reference ExternalStringResource::kDefaultMemoryEstimate directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it's defined as a const with a static_cast which means 1) it has no symbol and 2) it can't be emitted by bindgen

@devsnek devsnek merged commit e964a3a into main Mar 6, 2025
14 checks passed
@devsnek devsnek deleted the devsnek-patch-1 branch March 6, 2025 19:04
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