示例#1
0
        private NDBData LoadDataInternal(string path)
        {
            byte[] fileBytes = bytesLoaderFunc(path);
            if (fileBytes == null || fileBytes.Length == 0)
            {
                return(null);
            }
            NDBData data = new NDBData(path);

            data.SetData(fileBytes);

            return(data);
        }
示例#2
0
 public void SetText(byte[] textBytes)
 {
     textData = new NDBData($"{Name}(text)");
     textData.SetData(textBytes);
 }