| 58 | } |
| 59 | |
| 60 | StringPiece DeviceMgr::CopyToBackingStore(StringPiece s) { |
| 61 | size_t n = s.size(); |
| 62 | char* space = name_backing_store_.Alloc(n); |
| 63 | memcpy(space, s.data(), n); |
| 64 | return StringPiece(space, n); |
| 65 | } |
| 66 | |
| 67 | void DeviceMgr::ListDeviceAttributes( |
| 68 | std::vector<DeviceAttributes>* devices) const { |