diff --git a/nostrdb/Ndb.swift b/nostrdb/Ndb.swift index df97e1b8..ccefba04 100644 --- a/nostrdb/Ndb.swift +++ b/nostrdb/Ndb.swift @@ -44,7 +44,8 @@ class Ndb { return nil } - return NdbProfile(.init(memory: profile_p, count: size), o: 0) + let buf = ByteBuffer(assumingMemoryBound: profile_p, capacity: size) + return NdbProfile(buf, o: 0) } }