Summary
byte-blob: byte-blob->blob or byte-blob-object?
Metadata
- Id: eb4e385f309c536ab9348fef8cd351e6a013be17
- Trac id: 1190
- Type: defect
- Reporter: retroj
- Owner:
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version: 4.9.x
- Changetime: 2015-07-16 20:41:38 UTC
- Created: 2015-05-08 00:30:47 UTC
- Keywords:
Description
I need to pass a byte-blob to a foreign function, and found that foreign types scheme-pointer and blob-pointer both gave pointers to the object header rather than the blob contents. Looking into the source of the byte-blob egg, I found byte-blob-object and its alias byte-blob->blob. byte-blob-object is exported by the egg and byte-blob->blob is not exported. I used byte-blob-object to do what I needed to do, however neither of these procedures are mentioned in the documentation on Eggs Unlimited or the chickidee api reference, so I suspect something is unfinished here. Please advise! Thank you.
Changes and comments
[2015-05-08 00:41:42 UTC] iraikov wrote:
byte-blob->blob should have been exported, and the documentation should reflect that. I will fix this shortly.
[2015-05-08 01:26:12 UTC] iraikov wrote:
I've created a new release of byte-blob (1.17) that exports byte-blob->blob and have updated the documentation. Let me know if this works for you.
Replying to retroj: > I need to pass a byte-blob to a foreign function, and found that foreign types scheme-pointer and blob-pointer both gave pointers to the object header rather than the blob contents. Looking into the source of the byte-blob egg, I found byte-blob-object and its alias byte-blob->blob. byte-blob-object is exported by the egg and byte-blob->blob is not exported. I used byte-blob-object to do what I needed to do, however neither of these procedures are mentioned in the documentation on Eggs Unlimited or the chickidee api reference, so I suspect something is unfinished here. Please advise! Thank you.
[2015-05-08 03:03:11 UTC] retroj wrote:
Thank you. It looks like endian-blob also needs to be updated now because it uses byte-blob-object.