Example #1
0
 public int WriteTo(BobFsNode node, int offset)
 {
     byte[] buf = new byte[Name.Length + 8];
     BitConverter.GetBytes(Inum).CopyTo(buf, 0);
     BitConverter.GetBytes((uint)Name.Length).CopyTo(buf, 4);
     Encoding.ASCII.GetBytes(Name).CopyTo(buf, 8);
     return(node.WriteAll(offset, buf, 0, buf.Length));
 }