Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

groot: mbr/obj-wise streaming support for types with private fields #882

Description

@sbinet

in #880, we "discovered" the reflect-based approach for reading (and writing) values for which a r/w-streamer has been generated (roops, woops, rmops, wmops) won't work when the fields of those values are not exported.

what was done in #881 was to detect when a type implements rbytes.Unmarshaler and use that (so the reflect-based code isn't used).

options to generally address this:

  • use an unsafe scheme
  • introduce a new interface/protocol

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions