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

Rewrite obuffer #4

Open
deadtrickster opened this issue Oct 24, 2015 · 0 comments
Open

Rewrite obuffer #4

deadtrickster opened this issue Oct 24, 2015 · 0 comments
Assignees
Milestone

Comments

@deadtrickster
Copy link
Member

rewrite because payload length handling is ugly
need something like cursor that can be used to specified position
in the buffer, something like this:

(let ((pos (obuffer:write-placeholder obuffer 4)))
  (let ((bytes-written (encode-frame-payload obuffer payload)))
     (obuffer-encode-ub32 obuffer bytes-written :at pos)))

or maybe:

(obuffer-with-payload-length-as-ub32 obuffer
  (encode-frame-payload obuffer payload))
@deadtrickster deadtrickster self-assigned this Oct 24, 2015
@deadtrickster deadtrickster added this to the Version 0.1 milestone Oct 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant