address_io.adb

来自「RTEMS (Real-Time Executive for Multiproc」· ADB 代码 · 共 47 行

ADB
47
字号
----  Address_IO / Specification----  DESCRIPTION:----  This package instantiates the IO routines necessary to --  perform IO on data of the type System.Address.----  DEPENDENCIES: ----  ----  COPYRIGHT (c) 1989-1997.--  On-Line Applications Research Corporation (OAR).----  The license and distribution terms for this file may in--  the file LICENSE in this distribution or at--  http://www.rtems.com/license/LICENSE.----  $Id: address_io.adb,v 1.1.4.2 2003/09/04 18:43:38 joel Exp $--with System;with System.Storage_Elements;with Text_IO;package body Address_IO is   procedure Put (      Item  : in     System.Address;      Width : in     Natural := 8;      Base  : in     Natural := 16   ) is     package Integer_IO is new TEXT_IO.Integer_IO( Integer );   begin      Integer_IO.Put(         Integer( System.Storage_Elements.To_Integer( Item ) ),         Width,         Base      );   end Put;end Address_IO;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?