예제 #1
0
 public static string FLData_ConvertJSON(string json, FLError *outError)
 {
     using (var json_ = new C4String(json)) {
         using (var retVal = NativeRaw.FLData_ConvertJSON((FLSlice)json_.AsC4Slice(), outError)) {
             return(((FLSlice)retVal).CreateString());
         }
     }
 }
예제 #2
0
 public static byte[] FLData_ConvertJSON(byte[] json, FLError *outError)
 {
     fixed(byte *json_ = json)
     {
         using (var retVal = NativeRaw.FLData_ConvertJSON(new FLSlice(json_, (ulong)json.Length), outError)) {
             return(((C4Slice)retVal).ToArrayFast());
         }
     }
 }
예제 #3
0
        public static byte[] FLData_ConvertJSON(byte[] json, FLError *outError)
        {
            fixed(byte *b = json)
            {
                var slice = new FLSlice(b, (ulong)json.Length);

                using (var retVal = NativeRaw.FLData_ConvertJSON(slice, outError)) {
                    FLSlice r = retVal;
                    return(((C4Slice)r).ToArrayFast());
                }
            }
        }
 public FLSliceResult FLData_ConvertJSON(FLSlice json, FLError *outError) => NativeRaw.FLData_ConvertJSON(json, outError);