static void SAVE_CHUNK(BinaryWriter writer, VChunkHeader var, byte[] name) { var.ChunkID = new byte[20]; var.TypeFlag = 1999801; Buffer.BlockCopy(name, 0, var.ChunkID, 0, name.Length > 20 ? 20 : name.Length); var.Write(writer); }
static void SAVE_CHUNK(BinaryWriter writer, VChunkHeader var, string name) { var.ChunkID = new byte[20]; var.TypeFlag = 1999801; Extensions.StrCpy(var.ChunkID, name); var.Write(writer); }