MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fromCString

Method fromCString

source/core/StarByteArray.cpp:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace Star {
5
6ByteArray ByteArray::fromCString(char const* str) {
7 return ByteArray(str, strlen(str));
8}
9
10ByteArray ByteArray::fromCStringWithNull(char const* str) {
11 size_t len = strlen(str);

Callers

nothing calls this directly

Calls 1

ByteArrayClass · 0.85

Tested by

no test coverage detected