Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to display images #5

Merged
merged 21 commits into from
Jun 10, 2011
Merged

fix to display images #5

merged 21 commits into from
Jun 10, 2011

Conversation

sbarman
Copy link
Contributor

@sbarman sbarman commented Jun 10, 2011

No description provided.

@@ -65,6 +65,19 @@ var Stream = (function() {
return -1;
return bytes[this.pos++];
},
// returns subarray of original buffer
// should only be read
getBytes: function(length) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept the length there because I think this may be useful when during the parsing phase (which seems to be a bottleneck right now), and in that context it wouldn't make sense to read in the entire stream all at once.

sbarman pushed a commit that referenced this pull request Jun 10, 2011
fix to display images
@sbarman sbarman merged commit 9a3e264 into mozilla:master Jun 10, 2011
sbarman pushed a commit that referenced this pull request Jun 28, 2011
fix to display images
GiYung pushed a commit to GiYung/pdf.js that referenced this pull request Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants