Lines Matching refs:BytesIO

2 from io import BytesIO, UnsupportedOperation, DEFAULT_BUFFER_SIZE
534 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
536 with LZMAFile(BytesIO(), "w") as f:
538 with LZMAFile(BytesIO(), "x") as f:
540 with LZMAFile(BytesIO(), "a") as f:
589 LZMAFile(BytesIO(COMPRESSED_XZ), (3, "x"))
591 LZMAFile(BytesIO(COMPRESSED_XZ), "")
593 LZMAFile(BytesIO(COMPRESSED_XZ), "xt")
595 LZMAFile(BytesIO(COMPRESSED_XZ), "x+")
597 LZMAFile(BytesIO(COMPRESSED_XZ), "rx")
599 LZMAFile(BytesIO(COMPRESSED_XZ), "wx")
601 LZMAFile(BytesIO(COMPRESSED_XZ), "rt")
603 LZMAFile(BytesIO(COMPRESSED_XZ), "r+")
605 LZMAFile(BytesIO(COMPRESSED_XZ), "wt")
607 LZMAFile(BytesIO(COMPRESSED_XZ), "w+")
609 LZMAFile(BytesIO(COMPRESSED_XZ), "rw")
613 LZMAFile(BytesIO(), "w", check=b"asd")
616 LZMAFile(BytesIO(), "w", check=lzma.CHECK_UNKNOWN)
618 LZMAFile(BytesIO(), "w", check=lzma.CHECK_ID_MAX + 3)
621 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_NONE)
623 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC32)
625 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC64)
627 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_SHA256)
629 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_UNKNOWN)
633 LZMAFile(BytesIO(), "w", preset=4.39)
635 LZMAFile(BytesIO(), "w", preset=10)
637 LZMAFile(BytesIO(), "w", preset=23)
639 LZMAFile(BytesIO(), "w", preset=-1)
641 LZMAFile(BytesIO(), "w", preset=-7)
643 LZMAFile(BytesIO(), "w", preset="foo")
646 LZMAFile(BytesIO(COMPRESSED_XZ), preset=3)
650 LZMAFile(BytesIO(), "w", filters=[b"wobsite"])
652 LZMAFile(BytesIO(), "w", filters=[{"xyzzy": 3}])
654 LZMAFile(BytesIO(), "w", filters=[{"id": 98765}])
656 LZMAFile(BytesIO(), "w",
659 LZMAFile(BytesIO(), "w",
662 LZMAFile(BytesIO(), "w",
667 LZMAFile(BytesIO(), "w", format=lzma.FORMAT_RAW,
671 with BytesIO(COMPRESSED_XZ) as src:
691 f = LZMAFile(BytesIO(COMPRESSED_XZ))
700 f = LZMAFile(BytesIO(), "w")
708 f = LZMAFile(BytesIO(COMPRESSED_XZ))
724 f = LZMAFile(BytesIO(COMPRESSED_XZ))
733 f = LZMAFile(BytesIO(), "w")
740 src = BytesIO(COMPRESSED_XZ)
750 f = LZMAFile(BytesIO(COMPRESSED_XZ))
759 f = LZMAFile(BytesIO(), "w")
767 f = LZMAFile(BytesIO(COMPRESSED_XZ))
776 f = LZMAFile(BytesIO(), "w")
784 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
787 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
789 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
792 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
795 with LZMAFile(BytesIO(COMPRESSED_RAW_1),
799 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
803 with LZMAFile(BytesIO(COMPRESSED_RAW_3),
807 with LZMAFile(BytesIO(COMPRESSED_RAW_4),
813 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
815 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
817 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
819 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
823 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
834 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
836 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_ALONE)) as f:
838 with LZMAFile(BytesIO(COMPRESSED_RAW_3 * 4),
848 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
854 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_BOGUS)) as f:
858 with LZMAFile(BytesIO(COMPRESSED_XZ * 5 + COMPRESSED_BOGUS)) as f:
878 with LZMAFile(BytesIO(COMPRESSED_XZ[:128])) as f:
885 with LZMAFile(BytesIO(truncated)) as f:
887 with LZMAFile(BytesIO(truncated)) as f:
892 with LZMAFile(BytesIO(truncated[:i])) as f:
896 f = LZMAFile(BytesIO(COMPRESSED_XZ))
899 with LZMAFile(BytesIO(), "w") as f:
901 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
905 with LZMAFile(BytesIO(COMPRESSED_BOGUS)) as f:
909 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
920 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
924 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
935 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
946 f = LZMAFile(BytesIO(COMPRESSED_XZ))
949 with LZMAFile(BytesIO(), "w") as f:
951 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
955 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
960 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
967 with LZMAFile(BytesIO(), "w") as f:
971 with BytesIO(INPUT) as f:
973 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
975 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
977 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
979 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
981 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
986 with BytesIO(INPUT) as f:
988 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
993 with BytesIO(INPUT) as f:
995 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1003 decomp = LZMAFile(BytesIO(bomb))
1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1097 f = LZMAFile(BytesIO(), "w")
1100 with LZMAFile(BytesIO(COMPRESSED_XZ), "r") as f:
1102 with LZMAFile(BytesIO(), "w") as f:
1108 with BytesIO(INPUT) as f:
1110 with BytesIO() as dst:
1117 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1122 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1127 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1133 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1138 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1144 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1150 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1155 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1161 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1167 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1170 with LZMAFile(BytesIO(), "w") as f:
1172 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1180 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1189 with LZMAFile(BytesIO(), "w") as f:
1196 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1234 with lzma.open(BytesIO(COMPRESSED_XZ), "rb") as f:
1236 with BytesIO() as bio:
1249 with lzma.open(BytesIO(COMPRESSED_XZ), "rt") as f:
1251 with BytesIO() as bio:
1302 with lzma.open(BytesIO(COMPRESSED_RAW_1), "rb", **options) as f:
1304 with BytesIO() as bio:
1314 with BytesIO() as bio:
1325 with BytesIO(lzma.compress(b"foo\xffbar")) as bio:
1332 with BytesIO() as bio: