<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Posts on Dong&#39;s Notes</title>
    <link>https://levandong.dev/en/posts/</link>
    <description>Recent content in Posts on Dong&#39;s Notes</description>
    <image>
      <title>Dong&#39;s Notes</title>
      <url>https://levandong.dev/</url>
      <link>https://levandong.dev/</link>
    </image>
    <generator>Hugo -- 0.162.1</generator>
    <language>en</language>
    <copyright>Privacy • Copyright</copyright>
    <lastBuildDate>Tue, 06 Aug 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://levandong.dev/en/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Save data less in database using theory of bit in C#</title>
      <link>https://levandong.dev/en/bit-field-c-sharp-like-cpp/</link>
      <pubDate>Tue, 06 Aug 2024 00:00:00 +0000</pubDate>
      <guid>https://levandong.dev/en/bit-field-c-sharp-like-cpp/</guid>
      <description>&lt;p&gt;Using bit fields in C/C++ might be familiar to you. In C/C++, bit fields allow you to create multiple variables within a single byte, within the limits of the bit representation. Today, I’m sharing a similar technique for C#. It&amp;rsquo;s important to note that this method doesn&amp;rsquo;t exactly mirror C/C++ bit fields. Instead of optimizing variable size at runtime, it focuses on optimizing data storage. This post will guide you through this technique and compare it with C/C++.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Changing default Grub boot options</title>
      <link>https://levandong.dev/en/change-windows-as-default-in-grub/</link>
      <pubDate>Sat, 23 Mar 2024 03:21:58 +0000</pubDate>
      <guid>https://levandong.dev/en/change-windows-as-default-in-grub/</guid>
      <description>&lt;p&gt;Many people install dual boot both Windows and Linux. Some of them prefer set up Linux as a primary Operating System while some want to set Windows as their primary OS.&lt;/p&gt;
&lt;p&gt;After you install dual boot and start your computer, the Grub boot options will appear for you to choose, OS which you want to enter. If you prefer to have Windows as primary OS, this is inconvenient. The good news is that you can customize the priority OS in Grub boot.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bit Fields in C&#43;&#43; devide many variable with one byte</title>
      <link>https://levandong.dev/en/bit-fields-trong-c-cpp/</link>
      <pubDate>Mon, 12 Apr 2021 17:00:00 +0000</pubDate>
      <guid>https://levandong.dev/en/bit-fields-trong-c-cpp/</guid>
      <description>&lt;p&gt;Structs are essential in C/C++ for creating new data types that simplify variable management. However, a lesser-known feature of C/C++ structs is Bit Fields, which allow you to allocate a specific number of bits for a variable, optimizing memory usage.&lt;/p&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Bit Fields allocate adjacent memory positions to hold a series of bits.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For example, instead of using 8 bytes to store 8 flags (which would waste 54 bits), you can store them in a single byte by dividing the byte into different bit regions.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
