Home
last modified time | relevance | path

Searched refs:Brotli (Results 1 - 21 of 21) sorted by relevance

/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
H A DTransform.cs6 namespace Org.Brotli.Dec
34 internal static readonly Org.Brotli.Dec.Transform[] Transforms = new Org.Brotli.Dec.Transform[] { new Org.Brotli.Dec.Transform(string.Empty, Org.Brotli.Dec.WordTransformType.Identity, string.Empty), new Org.Brotli.Dec.Transform(string.Empty,
35 Org.Brotli.Dec.WordTransformType.Identity, " "), new Org.Brotli.Dec.Transform(" ", Org.Brotli.Dec.WordTransformType.Identity, " "), new Org.Brotli
[all...]
H A DDecode.cs6 namespace Org.Brotli.Dec
8 /// <summary>API for Brotli decompression.</summary>
45 private static int DecodeVarLenUnsignedByte(Org.Brotli.Dec.BitReader br) in DecodeVarLenUnsignedByte()
47 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeVarLenUnsignedByte()
49 int n = Org.Brotli.Dec.BitReader.ReadBits(br, 3); in DecodeVarLenUnsignedByte()
56 return Org.Brotli.Dec.BitReader.ReadBits(br, n) + (1 << n); in DecodeVarLenUnsignedByte()
62 private static void DecodeMetaBlockLength(Org.Brotli.Dec.BitReader br, Org.Brotli.Dec.State state) in DecodeMetaBlockLength()
64 state.inputEnd = Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 1; in DecodeMetaBlockLength()
68 if (state.inputEnd && Org.Brotli in DecodeMetaBlockLength()
[all...]
H A DState.cs6 namespace Org.Brotli.Dec
10 internal int runningState = Org.Brotli.Dec.RunningState.Uninitialized;
14 internal readonly Org.Brotli.Dec.BitReader br = new Org.Brotli.Dec.BitReader();
18 internal readonly int[] blockTypeTrees = new int[3 * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize];
20 internal readonly int[] blockLenTrees = new int[3 * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize];
30 internal readonly Org.Brotli.Dec.HuffmanTreeGroup hGroup0 = new Org.Brotli.Dec.HuffmanTreeGroup();
32 internal readonly Org.Brotli.Dec.HuffmanTreeGroup hGroup1 = new Org.Brotli
[all...]
H A DBitReader.cs6 namespace Org.Brotli.Dec
29 private readonly Org.Brotli.Dec.IntReader intReader = new Org.Brotli.Dec.IntReader();
55 internal static void ReadMoreInput(Org.Brotli.Dec.BitReader br) in ReadMoreInput()
68 throw new Org.Brotli.Dec.BrotliRuntimeException("No more input"); in ReadMoreInput()
92 throw new Org.Brotli.Dec.BrotliRuntimeException("Failed to read input", e); in ReadMoreInput()
94 Org.Brotli.Dec.IntReader.Convert(br.intReader, bytesRead >> 2); in ReadMoreInput()
97 internal static void CheckHealth(Org.Brotli.Dec.BitReader br, bool endOfStream) in CheckHealth()
106 throw new Org.Brotli.Dec.BrotliRuntimeException("Read after end"); in CheckHealth()
110 throw new Org.Brotli in CheckHealth()
[all...]
H A DDecodeTest.cs6 namespace Org.Brotli.Dec
21 Org.Brotli.Dec.BrotliInputStream brotliInput = new Org.Brotli.Dec.BrotliInputStream(input); in Decompress()
58 Org.Brotli.Dec.BrotliInputStream brotliInput = new Org.Brotli.Dec.BrotliInputStream(input, Org.Brotli.Dec.BrotliInputStream.DefaultInternalBufferSize, dictionary); in DecompressWithDictionary()
75 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResourceWithDictionary()
76 byte[] compressedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(compressed); in CheckDecodeResourceWithDictionary()
77 byte[] dictionaryBytes = Org.Brotli.Dec.Transform.ReadUniBytes(dictionary); in CheckDecodeResourceWithDictionary()
85 byte[] expectedBytes = Org.Brotli in CheckDecodeResource()
[all...]
H A DTransformTest.cs6 namespace Org.Brotli.Dec
36 Org.Brotli.Dec.Transform transform = new Org.Brotli.Dec.Transform("[", Org.Brotli.Dec.WordTransformType.OmitFirst5, "]"); in TestTrimAll()
37 Org.Brotli.Dec.Transform.TransformDictionaryWord(output, 0, input, 0, input.Length, transform); in TestTrimAll()
49 Org.Brotli.Dec.Transform transform = new Org.Brotli.Dec.Transform("[", Org.Brotli.Dec.WordTransformType.UppercaseAll, "]"); in TestCapitalize()
50 Org.Brotli.Dec.Transform.TransformDictionaryWord(output, 0, input, 0, input.Length, transform); in TestCapitalize()
65 for (int i = 0; i < Org.Brotli in TestAllTransforms()
[all...]
H A DBitReaderTest.cs6 namespace Org.Brotli.Dec
18 Org.Brotli.Dec.BitReader reader = new Org.Brotli.Dec.BitReader(); in TestReadAfterEos()
19 Org.Brotli.Dec.BitReader.Init(reader, new System.IO.MemoryStream(new byte[1])); in TestReadAfterEos()
20 Org.Brotli.Dec.BitReader.ReadBits(reader, 9); in TestReadAfterEos()
23 Org.Brotli.Dec.BitReader.CheckHealth(reader, false); in TestReadAfterEos()
25 catch (Org.Brotli.Dec.BrotliRuntimeException) in TestReadAfterEos()
H A DHuffmanTreeGroup.cs6 namespace Org.Brotli.Dec
28 internal static void Init(Org.Brotli.Dec.HuffmanTreeGroup group, int alphabetSize, int n) in Init()
31 group.codes = new int[n * Org.Brotli.Dec.Huffman.HuffmanMaxTableSize]; in Init()
38 internal static void Decode(Org.Brotli.Dec.HuffmanTreeGroup group, Org.Brotli.Dec.BitReader br) in Decode()
45 Org.Brotli.Dec.Decode.ReadHuffmanCode(group.alphabetSize, group.codes, next, br); in Decode()
46 next += Org.Brotli.Dec.Huffman.HuffmanMaxTableSize; in Decode()
H A DBrotliInputStream.cs6 namespace Org.Brotli.Dec
27 private readonly Org.Brotli.Dec.State state = new Org.Brotli.Dec.State();
104 Org.Brotli.Dec.State.SetInput(state, source); in BrotliInputStream()
106 catch (Org.Brotli.Dec.BrotliRuntimeException ex) in BrotliInputStream()
108 throw new System.IO.IOException("Brotli decoder initialization failed", ex); in BrotliInputStream()
112 Org.Brotli.Dec.Decode.SetCustomDictionary(state, customDictionary); in BrotliInputStream()
120 Org.Brotli.Dec.State.Close(state); in Close()
178 Org.Brotli.Dec.Decode.Decompress(state); in Read()
185 catch (Org.Brotli in Read()
[all...]
H A DDictionary.cs6 namespace Org.Brotli.Dec
61 string[] chunks = new string[] { Org.Brotli.Dec.Dictionary.DataHolder0.GetData(), Org.Brotli.Dec.Dictionary.DataHolder1.GetData(), Org.Brotli.Dec.Dictionary.DataHolder2.GetData() }; in DataHolder()
84 return Org.Brotli.Dec.Dictionary.DataHolder.Data; in GetData()
H A DIntReader.cs6 namespace Org.Brotli.Dec
15 internal static void Init(Org.Brotli.Dec.IntReader ir, byte[] byteBuffer, int[] intBuffer) in Init()
27 internal static void Convert(Org.Brotli.Dec.IntReader ir, int intLen) in Convert()
H A DDictionaryTest.cs6 namespace Org.Brotli.Dec
33 NUnit.Framework.Assert.AreEqual(37084801881332636L, Crc64(Org.Brotli.Dec.Dictionary.GetData())); in TestGetData()
H A DContext.cs6 namespace Org.Brotli.Dec
H A DPrefix.cs6 namespace Org.Brotli.Dec
H A DBrotliRuntimeException.cs6 namespace Org.Brotli.Dec
H A DRunningState.cs6 namespace Org.Brotli.Dec
H A DWordTransformType.cs6 namespace Org.Brotli.Dec
H A DUtils.cs6 namespace Org.Brotli.Dec
H A DHuffman.cs6 namespace Org.Brotli.Dec
H A DSynthTest.cs6 namespace Org.Brotli.Dec
21 Org.Brotli.Dec.BrotliInputStream brotliInput = new Org.Brotli.Dec.BrotliInputStream(input); in Decompress()
37 byte[] expected = Org.Brotli.Dec.Transform.ReadUniBytes(expectedOutput); in CheckSynth()
/third_party/node/lib/
H A Dzlib.js91 // Brotli operations (~flush levels)
835 function Brotli(opts, mode) { class
871 ObjectSetPrototypeOf(Brotli.prototype, Zlib.prototype);
872 ObjectSetPrototypeOf(Brotli, Zlib);
877 ReflectApply(Brotli, this, [opts, BROTLI_ENCODE]);
879 ObjectSetPrototypeOf(BrotliCompress.prototype, Brotli.prototype);
880 ObjectSetPrototypeOf(BrotliCompress, Brotli);
885 ReflectApply(Brotli, this, [opts, BROTLI_DECODE]);
887 ObjectSetPrototypeOf(BrotliDecompress.prototype, Brotli.prototype);
888 ObjectSetPrototypeOf(BrotliDecompress, Brotli);
[all...]

Completed in 18 milliseconds