// Token: 0x06004DB8 RID: 19896 RVA: 0x001DA6EC File Offset: 0x001D8AEC public static void Save(Stream stream, byte[] bytes) { using (BinaryWriter binaryWriter = new BinaryWriter(stream)) { HPointDataSerializedValue.Save(binaryWriter, bytes); } }
// Token: 0x06004DB6 RID: 19894 RVA: 0x001DA66C File Offset: 0x001D8A6C //public static async Task SaveAsync(string path, AutoHPointData data) //{ // HPointDataSerializedValue.< SaveAsync > c__async0.< SaveAsync > c__AnonStoreyD < SaveAsync > c__AnonStoreyD = new HPointDataSerializedValue.< SaveAsync > c__async0.< SaveAsync > c__AnonStoreyD(); // // < SaveAsync > c__AnonStoreyD.path = path; // // < SaveAsync > c__AnonStoreyD.serialized = new HPointDataSerializedValue(data); // await SystemUtil.TryProcAsync(Task.Run(delegate () // { // HPointDataSerializedValue.< SaveAsync > c__async0.< SaveAsync > c__AnonStoreyD.< SaveAsync > c__asyncC < SaveAsync > c__asyncC; // // < SaveAsync > c__asyncC.<> f__ref$13 = < SaveAsync > c__AnonStoreyD; // // < SaveAsync > c__asyncC.$builder = AsyncTaskMethodBuilder.Create(); // // < SaveAsync > c__asyncC.$builder.Start < HPointDataSerializedValue.< SaveAsync > c__async0.< SaveAsync > c__AnonStoreyD.< SaveAsync > c__asyncC > (ref <SaveAsync>c__asyncC); // return < SaveAsync > c__asyncC.$builder.Task; // })); //} // Token: 0x06004DB7 RID: 19895 RVA: 0x001DA6AC File Offset: 0x001D8AAC public static void Save(string path, byte[] bytes) { using (FileStream fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Write)) { HPointDataSerializedValue.Save(fileStream, bytes); } }
// Token: 0x06004DBE RID: 19902 RVA: 0x001DA834 File Offset: 0x001D8C34 public static async Task SaveAsync(Stream stream, byte[] bytes) { using (BinaryWriter writer = new BinaryWriter(stream)) { await HPointDataSerializedValue.SaveAsync(writer, bytes); } }
// Token: 0x06004DBA RID: 19898 RVA: 0x001DA738 File Offset: 0x001D8B38 //public static void Load(string path, ref AutoHPointData data) //{ // using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) // { // HPointDataSerializedValue.Load(fileStream, ref data); // } //} // Token: 0x06004DBB RID: 19899 RVA: 0x001DA778 File Offset: 0x001D8B78 //public static void Load(Stream stream, ref AutoHPointData data) //{ // using (BinaryReader binaryReader = new BinaryReader(stream)) // { // HPointDataSerializedValue.Load(binaryReader, ref data); // } //} // Token: 0x06004DBC RID: 19900 RVA: 0x001DA7B8 File Offset: 0x001D8BB8 //public static void Load(BinaryReader reader, ref AutoHPointData data) //{ // byte[] bytes = reader.ReadBytes((int)reader.BaseStream.Length); // HPointDataSerializedValue hpointDataSerializedValue = MessagePackSerializer.Deserialize<HPointDataSerializedValue>(bytes); // data.Allocation(hpointDataSerializedValue.HPointDataAreaID, hpointDataSerializedValue.HPointDataPos); //} // Token: 0x06004DBD RID: 19901 RVA: 0x001DA7F4 File Offset: 0x001D8BF4 public static async Task SaveAsync(string path, byte[] bytes) { using (FileStream stream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Write)) { await HPointDataSerializedValue.SaveAsync(stream, bytes); } }
// Token: 0x06004DC1 RID: 19905 RVA: 0x001DA8EC File Offset: 0x001D8CEC public static async Task <HPointDataSerializedValue> LoadAsync(Stream stream) { HPointDataSerializedValue result; using (BinaryReader reader = new BinaryReader(stream)) { result = await HPointDataSerializedValue.LoadAsync(reader); } return(result); }
// Token: 0x06004DC0 RID: 19904 RVA: 0x001DA8B4 File Offset: 0x001D8CB4 public static async Task <HPointDataSerializedValue> LoadAsync(string path) { HPointDataSerializedValue result; using (FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) { result = await HPointDataSerializedValue.LoadAsync(stream); } return(result); }