Skip to content

Add RFC 5531 Record Marking Standard references to XDRStream#5136

Open
leighmcculloch wants to merge 3 commits intomasterfrom
docs/add-record-marking-standard
Open

Add RFC 5531 Record Marking Standard references to XDRStream#5136
leighmcculloch wants to merge 3 commits intomasterfrom
docs/add-record-marking-standard

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Feb 12, 2026

Description

Add doc comments to getXDRSize and writeOne in src/util/XDRStream.h referencing RFC 5531 Section 11. Replace the informal "continuation bit" terminology with the RFC's "last-fragment flag" and document the full fragment header layout (bit 31 = last-fragment flag, bits 0-30 = data length).

The existing comments describe the high bit as an XDR "continuation" bit, which is not a term the RFC uses and can mislead readers into thinking it is part of the XDR specification itself. Linking to RFC 5531 and using its terminology makes the code self-documenting and easier to cross-reference for anyone implementing compatible readers or writers.

Related

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Document that getXDRSize and writeOne implement the Record Marking
Standard defined in RFC 5531 Section 11, clarifying the fragment
header format and the last-fragment flag bit.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds clearer, spec-linked documentation around the Record Marking Standard (RFC 5531 §11) used by XDRStream record framing, replacing informal “continuation bit” terminology with the RFC’s “last-fragment flag”.

Changes:

  • Document XDRInputFileStream::getXDRSize as parsing the RFC 5531 record-marking fragment header layout.
  • Document XDROutputFileStream::writeOne as writing a single-fragment record with the last-fragment flag set.

Move the Record Marking Standard documentation from individual function
comments to the XDRInputFileStream and XDROutputFileStream class-level
doc comments, and simplify the function-level comments to reference the
class docs.
Agent: Claude Code
Agent-Model: claude-opus-4-6
Agent-Session-Id: 5c1f5dda-9af4-4639-9bfc-573b1a09924a
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.

1 participant