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

Method CreateSample

benchmarks/csharp/BenchmarkModels.cs:537–564  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535 }
536
537 public static Sample CreateSample()
538 {
539 return new Sample
540 {
541 IntValue = 123,
542 LongValue = 1230000,
543 FloatValue = 12.345f,
544 DoubleValue = 1.234567,
545 ShortValue = 12345,
546 CharValue = '!',
547 BooleanValue = true,
548 IntValueBoxed = 321,
549 LongValueBoxed = 3210000,
550 FloatValueBoxed = 54.321f,
551 DoubleValueBoxed = 7.654321,
552 ShortValueBoxed = 32100,
553 CharValueBoxed = '$',
554 BooleanValueBoxed = false,
555 IntArray = [-1234, -123, -12, -1, 0, 1, 12, 123, 1234],
556 LongArray = [-123400, -12300, -1200, -100, 0, 100, 1200, 12300, 123400],
557 FloatArray = [-12.34f, -12.3f, -12.0f, -1.0f, 0.0f, 1.0f, 12.0f, 12.3f, 12.34f],
558 DoubleArray = [-1.234, -1.23, -12.0, -1.0, 0.0, 1.0, 12.0, 1.23, 1.234],
559 ShortArray = [-1234, -123, -12, -1, 0, 1, 12, 123, 1234],
560 CharArray = ['a', 's', 'd', 'f', 'A', 'S', 'D', 'F'],
561 BooleanArray = [true, false, false, true],
562 String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
563 };
564 }
565
566 public static MediaContent CreateMediaContent()
567 {

Callers 1

BuildBenchmarkCasesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected