add user_data trailer type#1180
Conversation
| /// (`PTF_USER_TIMESTAMP`, `PTF_FRAME_ID`, `PTF_USER_DATA`), so individual fields | ||
| /// are `Option`. | ||
| #[derive(Debug, Clone)] | ||
| pub struct FrameMetadata { |
There was a problem hiding this comment.
question: Could we define a helper on FrameMetadata so the user can calculate their exact max user_data length based on the other fields they have set?
There was a problem hiding this comment.
I'm not sure if FrameMetadata would be able to calculate it since all the fields get set at the same time usually. Otherwise it would need to know about the Features that were enabled on the TrackPublishOptions.
f5f0f1b to
87ea8d7
Compare
No changeset foundThis PR modifies the following packages but doesn't include a changeset: Directly changed:
Downstream dependencies (also need a version bump):
Click here to create a changeset The link pre-populates a changeset file with If this change doesn't require a version bump, add the |
No description provided.