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

[luci/export] Revise encodeOpBufferByDType for extended Buffer #13878

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

seanshpark
Copy link
Contributor

This will revise encodeOpBufferByDType for extended Buffer mode.

  • store buffer content to extra map instead of creating Buffer
  • return fake Buffer with offset/size of 1 and 1.

This will revise encodeOpBufferByDType for extended Buffer mode.
- store buffer content to extra map instead of creating Buffer
- return fake Buffer with offset/size of 1 and 1.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
@seanshpark
Copy link
Contributor Author

@seanshpark seanshpark requested a review from a team September 2, 2024 04:18
Copy link
Contributor

@shs-park shs-park left a comment

Choose a reason for hiding this comment

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

I left a question, PTAL
=)

Comment on lines +372 to +373
// create fake indicator buffer
return circle::CreateBuffer(builder, 0 /* data */, 1 /* offset */, 1 /* size */);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this fake indicator buffer?
Is it used elsewhere? 😅

Copy link
Contributor Author

@seanshpark seanshpark Sep 2, 2024

Choose a reason for hiding this comment

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

real (!fake) Buffer holds actual data,
but this fake Buffer won,t and the offset will point to the file offset to the actual Data.


we initialize two values, offset and size to 1.
then when we produce the file data for export, we update each Buffer offset/size to actual values. so, in import, if we meet the Buffer offset/size as 1, this Buffer is invalid, as there was some problem with the update of actual value.

@seanshpark seanshpark merged commit fa0a1ca into Samsung:master Sep 2, 2024
10 checks passed
@seanshpark seanshpark deleted the luci_exp_encodeopbuff branch September 2, 2024 08:44
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