MCPcopy Create free account
hub / github.com/apache/fory / Program

Class Program

csharp/tests/Fory.XlangPeer/Program.cs:27–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace Apache.Fory.XlangPeer;
26
27internal static class Program
28{
29 private const string DataFileEnv = "DATA_FILE";
30
31 private static readonly string[] StringSamples =
32 [
33 "ab",
34 "Rust123",
35 "Çüéâäàåçêëèïî",
36 "こんにちは",
37 "Привет",
38 "𝄞🎵🎶",
39 "Hello, 世界",
40 ];
41
42 private static readonly int[] VarInt32Values =
43 [
44 int.MinValue,
45 int.MinValue + 1,
46 -1_000_000,
47 -1000,
48 -128,
49 -1,
50 0,
51 1,
52 127,
53 128,
54 16_383,
55 16_384,
56 2_097_151,
57 2_097_152,
58 268_435_455,
59 268_435_456,
60 int.MaxValue - 1,
61 int.MaxValue,
62 ];
63
64 private static readonly uint[] VarUInt32Values =
65 [
66 0,
67 1,
68 127,
69 128,
70 16_383,
71 16_384,
72 2_097_151,
73 2_097_152,
74 268_435_455,
75 268_435_456,
76 2_147_483_646,
77 2_147_483_647,
78 ];
79
80 private static readonly ulong[] VarUInt64Values =
81 [
82 0UL,
83 1UL,
84 127UL,

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected