1 /* 2 * Copyright 2016 Google Inc. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 using System; 18 19 namespace FlatBuffers.Test 20 { 21 internal static class FuzzTestData 22 { 23 private static readonly byte[] _overflowInt32 = new byte[] {0x83, 0x33, 0x33, 0x33}; 24 private static readonly byte[] _overflowInt64 = new byte[] { 0x84, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44 }; 25 26 public static readonly bool BoolValue = true; 27 public static readonly sbyte Int8Value = -127; // 0x81 28 public static readonly byte UInt8Value = 255; // 0xFF 29 public static readonly short Int16Value = -32222; // 0x8222; 30 public static readonly ushort UInt16Value = 65262; // 0xFEEE 31 public static readonly int Int32Value = BitConverter.ToInt32(_overflowInt32, 0); 32 public static readonly uint UInt32Value = 0xFDDDDDDD; 33 public static readonly long Int64Value = BitConverter.ToInt64(_overflowInt64, 0); 34 public static readonly ulong UInt64Value = 0xFCCCCCCCCCCCCCCC; 35 public static readonly float Float32Value = 3.14159f; 36 public static readonly double Float64Value = 3.14159265359; 37 } 38 }