Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2020-03-19 18:37:34 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
562de3b206219854bc855e9f8b23403ff68cd4f2
562de3b2
1 parent
316eb9c6
Reduce the memory used by PdfStream
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
pdf/lib/src/stream.dart
pdf/lib/src/stream.dart
View file @
562de3b
...
...
@@ -30,7 +30,7 @@ class PdfStream {
return
;
}
final
int
newSize
=
math
.
max
(
_offset
+
size
+
_grow
,
_offset
*
2
)
;
final
int
newSize
=
_offset
+
size
+
_grow
;
final
Uint8List
newBuffer
=
Uint8List
(
newSize
);
newBuffer
.
setAll
(
0
,
_stream
);
_stream
=
newBuffer
;
...
...
Please
register
or
login
to post a comment