public Write ( |
||
position | ||
arr | byte | |
리턴 | void |
/// <summary> /// 写入字节数据 /// </summary> /// <param name="array"></param> /// <param name="offset"></param> /// <param name="count"></param> public void Write(byte[] array, UInt32 offset, UInt32 count) { byte[] arr = new byte[count]; Buffer.BlockCopy(array, (int)offset, arr, 0, (int)count); inode.Write(position, arr); position += count; }
/// <summary> /// 持久化该目录 /// </summary> private void Save() { MemoryStream ms = new MemoryStream(); Serializer.Serialize(ms, entries); byte[] bytes = ms.ToArray(); inode.Write(bytes); }