mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Move additional worker-thread only functions from src/shared/util.js
and into a src/core/core_utils.js
instead
This moves the `log2`, `readInt8`, `readUint16`, `readUint32`, and `isSpace` functions since they are only used in the worker-thread.
This commit is contained in:
parent
794744c3fa
commit
3f031f69c2
12 changed files with 82 additions and 99 deletions
|
@ -29,7 +29,6 @@ import {
|
|||
FormatError,
|
||||
info,
|
||||
isNum,
|
||||
isSpace,
|
||||
StreamType,
|
||||
warn,
|
||||
} from "../shared/util.js";
|
||||
|
@ -44,11 +43,11 @@ import {
|
|||
Name,
|
||||
Ref,
|
||||
} from "./primitives.js";
|
||||
import { isSpace, MissingDataException } from "./core_utils.js";
|
||||
import { CCITTFaxStream } from "./ccitt_stream.js";
|
||||
import { Jbig2Stream } from "./jbig2_stream.js";
|
||||
import { JpegStream } from "./jpeg_stream.js";
|
||||
import { JpxStream } from "./jpx_stream.js";
|
||||
import { MissingDataException } from "./core_utils.js";
|
||||
|
||||
const MAX_LENGTH_TO_CACHE = 1000;
|
||||
const MAX_ADLER32_LENGTH = 5552;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue