I have a bufferlist use case that I can't quite resolve. I'm packing
up a struct and a blob, but not sure how to seek to the beginning of
the blob correctly during decode:

1. Setup bufferlist

  /* add header */
  struct header hdr;
  ::encode(hdr, bl);

  /* add payload blob */
  bl.append(buf, len);

2. Later in decode ...

  /* get header */
  bufferlist::iterator it = in.begin();
  ::decode(hdr, it);

  **problem: Want to get a bufferlist for the payload, which is
presumably exactly where the iterator now points. How should that
transformation happen with zero-copy?

Thanks,
Noah
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to