Lines Matching refs:BytesIO

2 from io import BytesIO, UnsupportedOperation, DEFAULT_BUFFER_SIZE
532 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
534 with LZMAFile(BytesIO(), "w") as f:
536 with LZMAFile(BytesIO(), "x") as f:
538 with LZMAFile(BytesIO(), "a") as f:
587 LZMAFile(BytesIO(COMPRESSED_XZ), (3, "x"))
589 LZMAFile(BytesIO(COMPRESSED_XZ), "")
591 LZMAFile(BytesIO(COMPRESSED_XZ), "xt")
593 LZMAFile(BytesIO(COMPRESSED_XZ), "x+")
595 LZMAFile(BytesIO(COMPRESSED_XZ), "rx")
597 LZMAFile(BytesIO(COMPRESSED_XZ), "wx")
599 LZMAFile(BytesIO(COMPRESSED_XZ), "rt")
601 LZMAFile(BytesIO(COMPRESSED_XZ), "r+")
603 LZMAFile(BytesIO(COMPRESSED_XZ), "wt")
605 LZMAFile(BytesIO(COMPRESSED_XZ), "w+")
607 LZMAFile(BytesIO(COMPRESSED_XZ), "rw")
611 LZMAFile(BytesIO(), "w", check=b"asd")
614 LZMAFile(BytesIO(), "w", check=lzma.CHECK_UNKNOWN)
616 LZMAFile(BytesIO(), "w", check=lzma.CHECK_ID_MAX + 3)
619 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_NONE)
621 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC32)
623 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC64)
625 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_SHA256)
627 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_UNKNOWN)
631 LZMAFile(BytesIO(), "w", preset=4.39)
633 LZMAFile(BytesIO(), "w", preset=10)
635 LZMAFile(BytesIO(), "w", preset=23)
637 LZMAFile(BytesIO(), "w", preset=-1)
639 LZMAFile(BytesIO(), "w", preset=-7)
641 LZMAFile(BytesIO(), "w", preset="foo")
644 LZMAFile(BytesIO(COMPRESSED_XZ), preset=3)
648 LZMAFile(BytesIO(), "w", filters=[b"wobsite"])
650 LZMAFile(BytesIO(), "w", filters=[{"xyzzy": 3}])
652 LZMAFile(BytesIO(), "w", filters=[{"id": 98765}])
654 LZMAFile(BytesIO(), "w",
657 LZMAFile(BytesIO(), "w",
660 LZMAFile(BytesIO(), "w",
665 LZMAFile(BytesIO(), "w", format=lzma.FORMAT_RAW,
669 with BytesIO(COMPRESSED_XZ) as src:
689 f = LZMAFile(BytesIO(COMPRESSED_XZ))
698 f = LZMAFile(BytesIO(), "w")
706 f = LZMAFile(BytesIO(COMPRESSED_XZ))
722 f = LZMAFile(BytesIO(COMPRESSED_XZ))
731 f = LZMAFile(BytesIO(), "w")
738 src = BytesIO(COMPRESSED_XZ)
748 f = LZMAFile(BytesIO(COMPRESSED_XZ))
757 f = LZMAFile(BytesIO(), "w")
765 f = LZMAFile(BytesIO(COMPRESSED_XZ))
774 f = LZMAFile(BytesIO(), "w")
782 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
785 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
787 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
790 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
793 with LZMAFile(BytesIO(COMPRESSED_RAW_1),
797 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
801 with LZMAFile(BytesIO(COMPRESSED_RAW_3),
805 with LZMAFile(BytesIO(COMPRESSED_RAW_4),
811 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
813 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
815 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
817 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
821 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
832 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
834 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_ALONE)) as f:
836 with LZMAFile(BytesIO(COMPRESSED_RAW_3 * 4),
846 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
852 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_BOGUS)) as f:
856 with LZMAFile(BytesIO(COMPRESSED_XZ * 5 + COMPRESSED_BOGUS)) as f:
876 with LZMAFile(BytesIO(COMPRESSED_XZ[:128])) as f:
883 with LZMAFile(BytesIO(truncated)) as f:
885 with LZMAFile(BytesIO(truncated)) as f:
890 with LZMAFile(BytesIO(truncated[:i])) as f:
894 f = LZMAFile(BytesIO(COMPRESSED_XZ))
897 with LZMAFile(BytesIO(), "w") as f:
899 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
903 with LZMAFile(BytesIO(COMPRESSED_BOGUS)) as f:
907 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
918 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
922 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
933 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
944 f = LZMAFile(BytesIO(COMPRESSED_XZ))
947 with LZMAFile(BytesIO(), "w") as f:
949 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
953 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
958 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
965 with LZMAFile(BytesIO(), "w") as f:
969 with BytesIO(INPUT) as f:
971 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
973 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
975 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
977 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
979 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
984 with BytesIO(INPUT) as f:
986 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
991 with BytesIO(INPUT) as f:
993 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1001 decomp = LZMAFile(BytesIO(bomb))
1008 with BytesIO() as dst:
1013 with BytesIO() as dst:
1018 with BytesIO() as dst:
1023 with BytesIO() as dst:
1032 with BytesIO() as dst:
1044 with BytesIO() as dst:
1095 f = LZMAFile(BytesIO(), "w")
1098 with LZMAFile(BytesIO(COMPRESSED_XZ), "r") as f:
1100 with LZMAFile(BytesIO(), "w") as f:
1106 with BytesIO(INPUT) as f:
1108 with BytesIO() as dst:
1115 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1120 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1125 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1131 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1136 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1142 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1148 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1153 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1159 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1165 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1168 with LZMAFile(BytesIO(), "w") as f:
1170 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1178 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1187 with LZMAFile(BytesIO(), "w") as f:
1194 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1202 with lzma.open(BytesIO(COMPRESSED_XZ), "rb") as f:
1204 with BytesIO() as bio:
1217 with lzma.open(BytesIO(COMPRESSED_XZ), "rt") as f:
1219 with BytesIO() as bio:
1270 with lzma.open(BytesIO(COMPRESSED_RAW_1), "rb", **options) as f:
1272 with BytesIO() as bio:
1282 with BytesIO() as bio:
1293 with BytesIO(lzma.compress(b"foo\xffbar")) as bio:
1300 with BytesIO() as bio: