1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "mojo/public/cpp/bindings/lib/native_struct_data.h" 6 7 #include "mojo/public/cpp/bindings/lib/buffer.h" 8 #include "mojo/public/cpp/bindings/lib/validation_context.h" 9 10 namespace mojo { 11 namespace internal { 12 13 // static 14 bool NativeStruct_Data::Validate(const void* data, 15 ValidationContext* validation_context) { 16 const ContainerValidateParams data_validate_params(0, false, nullptr); 17 return Array_Data<uint8_t>::Validate(data, validation_context, 18 &data_validate_params); 19 } 20 21 } // namespace internal 22 } // namespace mojo 23