Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
namespace Star {
5
6
ByteArray ByteArray::fromCString(char const* str) {
7
return ByteArray(str, strlen(str));
8
}
9
10
ByteArray ByteArray::fromCStringWithNull(char const* str) {
11
size_t len = strlen(str);
Callers
nothing calls this directly
Calls
1
ByteArray
Class · 0.85
Tested by
no test coverage detected