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