hi,
The lob size is expressed in bit_uint because from 10g LOBs can have a size
up to 128Tb.
That's why i've introduced big_uint in OCILIB and used it for OCILIB calls
where the a parameter or return value could
be hold a value up the max size of a lob like OCI_LobGetLength().
But I kept unsigned int for read/write calls because reading/writing chuncks
bigger then 4Gb appeared to me unnecessary and inefficient.
Do you mean that is your lob is 32Gb, you'd like to get all of its content
in one go ? That you would allocate 32 Gb of RAM on you machine to read its
content in only one go ? You would a big big amazing server !!
I don't think it is efficient... That's why i kept read/write chunks piece
size in the limit of unsigned int boundaries, eg. 4Gb...
Regards,
Vincent
2010/1/22 Roberto Martelloni <rob...@di...>
> Hello to All,
>
> just a little question, why when i read/write within a lob i can only
> read/write unsigned int data
>
> OCI_EXPORT unsigned int OCI_API OCI_LobRead (OCI_Lob *lob, void *buffer,
> unsigned int len)
> OCI_EXPORT unsigned int OCI_API OCI_LobWrite (OCI_Lob *lob, void
> *buffer, unsigned int len)
>
> if the size of the lob can be big_uint ?
>
> OCI_EXPORT big_uint OCI_API OCI_LobGetLength (OCI_Lob *lob)
>
> why dont use read/write operation with big_uint len ?
>
> OCI_EXPORT unsigned int OCI_API OCI_LobRead (..., big_uint len)
> OCI_EXPORT unsigned int OCI_API OCI_LobWrite (..., big_uint len)
>
> thanks
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Orclib-devel mailing list
> Orc...@li...
> https://lists.sourceforge.net/lists/listinfo/orclib-devel
>
--
Vincent Rogier
|