Summary

byte-blob: byte-blob->blob or byte-blob-object?

Metadata

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.

[2015-07-16 20:41:38 UTC] iraikov changed status from new to closed

[2015-07-16 20:41:38 UTC] iraikov set resolution to fixed