text: //----------------------------------------------------------------------------//
  //|
  //|             MachOKit - A Lightweight Mach-O Parsing Library
  //|             load_command_data_in_code.c
  //|
  //|             D.V.
  //|             Copyright (c) 2014-2015 D.V. All rights reserved.
  //|
  //| Permission is hereby granted, free of charge, to any person obtaining a
  //| copy of this software and associated documentation files (the "Software"),
  //| to deal in the Software without restriction, including without limitation
  //| the rights to use, copy, modify, merge, publish, distribute, sublicense,
  //| and/or sell copies of the Software, and to permit persons to whom the
  //| Software is furnished to do so, subject to the following conditions:
  //|
  //| The above copyright notice and this permission notice shall be included
  //| in all copies or substantial portions of the Software.
  //|
  //| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  //| OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  //| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  //| IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  //| CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  //| TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  //| SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  //----------------------------------------------------------------------------//
  
  #include "macho_abi_internal.h"
  
  const struct _mk_load_command_vtable _mk_load_command_data_in_code_class = {
      .base.super                 = &_mk_load_command_class,
      .base.name                  = "LC_DATA_IN_CODE",
      .base.copy_description      = &_mk_load_command_type_linkedit_description,
      .command_id                 = LC_DATA_IN_CODE
  };
  
  //|++++++++++++++++++++++++++++++++++++|//
  uint32_t mk_load_command_data_in_code_id()
  { return LC_DATA_IN_CODE; }
  
  //|++++++++++++++++++++++++++++++++++++|//
  mk_error_t
  mk_load_command_data_in_code_copy_native(mk_load_command_ref load_command, struct linkedit_data_command *result)
  {
      _MK_LOAD_COMMAND_NOT_NULL(load_command, return MK_EINVAL);
      _MK_LOAD_COMMAND_IS_A(load_command, _mk_load_command_data_in_code_class, return MK_EINVAL);
      return _mk_load_command_type_linkedit_copy_native(load_command, result);
  }
  
  //|++++++++++++++++++++++++++++++++++++|//
  uint32_t
  mk_load_command_data_in_code_get_dataoff(mk_load_command_ref load_command)
  {
      _MK_LOAD_COMMAND_NOT_NULL(load_command, return UINT32_MAX);
      _MK_LOAD_COMMAND_IS_A(load_command, _mk_load_command_data_in_code_class, return UINT32_MAX);
      return _mk_load_command_type_linkedit_get_dataoff(load_command);
  }
  
  //|++++++++++++++++++++++++++++++++++++|//
  uint32_t
  mk_load_command_data_in_code_get_datasize(mk_load_command_ref load_command)
  {
      _MK_LOAD_COMMAND_NOT_NULL(load_command, return UINT32_MAX);
      _MK_LOAD_COMMAND_IS_A(load_command, _mk_load_command_data_in_code_class, return UINT32_MAX);
      return _mk_load_command_type_linkedit_get_datasize(load_command);
  }
  