MySQL Forums
Forum List  »  Custom Storage Engines

internal row format for blob
Posted by: Jason B
Date: December 15, 2009 07:39AM

I'm working on a storage engine which supports blobs, but I'm having some trouble finding a definitive source for the internal row format which mysql uses. I've pieced together most of the basic data types and how a variable length row is stored in the internal row buffer, but I had a question on the blob . . .

My understanding is that the data for this column consists of an int length followed by the location in memory where the blob exists.

If I want to write the blob to a table, is the idea that I should memcpy from the address in the buf to a local buffer then write? I'm not really clear on how to accomplish this with respect to casting the address in the buf to a proper pointer and using it in memcpy. Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
internal row format for blob
6181
December 15, 2009 07:39AM
3927
December 16, 2009 12:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.