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
2021-04-05 10:47:53 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
beea626a40f8e6027d960cb5330ec97ce66849f3
beea626a
1 parent
85e5c972
Remove ASCii85 terminator
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
pdf/lib/src/pdf/ascii85.dart
pdf/lib/src/pdf/ascii85.dart
View file @
beea626
...
...
@@ -21,7 +21,7 @@ import 'dart:typed_data';
class
Ascii85Encoder
extends
Converter
<
Uint8List
,
Uint8List
>
{
@override
Uint8List
convert
(
Uint8List
input
)
{
final
output
=
Uint8List
(
_maxEncodedLen
(
input
.
length
)
+
2
);
final
output
=
Uint8List
(
_maxEncodedLen
(
input
.
length
));
var
outputOffset
=
0
;
var
inputOffset
=
0
;
...
...
@@ -80,10 +80,7 @@ class Ascii85Encoder extends Converter<Uint8List, Uint8List> {
outputOffset
+=
5
;
}
output
[
outputOffset
]
=
0x7e
;
output
[
outputOffset
+
1
]
=
0x3e
;
return
output
.
sublist
(
0
,
outputOffset
+
2
);
return
output
.
sublist
(
0
,
outputOffset
);
}
int
_maxEncodedLen
(
int
length
)
=>
(
length
+
3
)
~/
4
*
5
;
...
...
Please
register
or
login
to post a comment