[ 
https://issues.apache.org/jira/browse/PDFBOX-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854558#comment-16854558
 ] 

Jason Pyeron commented on PDFBOX-4554:
--------------------------------------

But the length would be shorter in the above case. There are other situation, 
out of the scope of PDFBox, where the byte[] is not starting at zero - in those 
cases, each of the signed version would start at the SAME, non-zero offset.

I am not proposing (in this ticket at least) the other API changes - It 
requires much more testing before proposing the change. That being said, a 
stream based approach would require "resets". Streams can, very easily, be made 
from an array of ByteBuffer.

> operations taking a byte[] need to allow for offset and length too
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-4554
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4554
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Jason Pyeron
>            Priority: Major
>
> Without this, massive amounts of memory must be copied/allocated to "trim" 
> byte[].
> See forthcoming pull request.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to