/* * Copyright (c) 2011 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include using namespace Swift; namespace Swift { SafeByteArray createSafeByteArray(const char* c) { SafeByteArray data; while (*c) { data.push_back(static_cast(*c)); ++c; } return data; } }