packet.hh (10412:6400a2ab4e22) | packet.hh (10562:b99fdc295c34) |
---|---|
1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 832 unchanged lines hidden (view full) --- 841 flags.set(DYNAMIC_DATA); 842 } 843 844 /** 845 * get a pointer to the data ptr. 846 */ 847 template <typename T> 848 T* | 1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 832 unchanged lines hidden (view full) --- 841 flags.set(DYNAMIC_DATA); 842 } 843 844 /** 845 * get a pointer to the data ptr. 846 */ 847 template <typename T> 848 T* |
849 getPtr(bool null_ok = false) | 849 getPtr() |
850 { | 850 { |
851 assert(null_ok || flags.isSet(STATIC_DATA|DYNAMIC_DATA)); | 851 assert(flags.isSet(STATIC_DATA|DYNAMIC_DATA)); |
852 return (T*)data; 853 } 854 855 /** 856 * return the value of what is pointed to in the packet. 857 */ 858 template <typename T> 859 T get(); --- 131 unchanged lines hidden --- | 852 return (T*)data; 853 } 854 855 /** 856 * return the value of what is pointed to in the packet. 857 */ 858 template <typename T> 859 T get(); --- 131 unchanged lines hidden --- |