2021-04-12 | Paul Boddie | raw annotate files changeset graph | Introduced distinct types instead of using the file offset type throughout. This makes a difference on 32-bit architectures where the address type will only be 32 bits wide, whereas the file offset type should be 64 bits wide. |
1 #pragma once 2 3 #include "types.h" 4 5 /* A "send" flexpage abstraction. */ 6 7 class SendFlexpage 8 { 9 public: 10 address_t base_addr; 11 unsigned int order; 12 flags_t flags; 13 14 explicit SendFlexpage(address_t base_addr, unsigned int order, 15 flags_t flags) 16 : base_addr(base_addr), order(order), flags(flags) 17 { 18 } 19 }; 20 21 // vim: tabstop=4 expandtab shiftwidth=4