{"id":4058,"date":"2017-06-21T16:06:06","date_gmt":"2017-06-21T21:06:06","guid":{"rendered":"http:\/\/neosmart.net\/blog\/?p=4058"},"modified":"2018-01-13T14:54:23","modified_gmt":"2018-01-13T20:54:23","slug":"prettysize-a-net-library-for-printing-human-readable-file-sizes","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/","title":{"rendered":"PrettySize: a .NET library for printing human-readable file sizes"},"content":{"rendered":"<p><a href=\"http:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size.png\" rel=\"follow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-4074 colorbox-4058\" src=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-600x600.png\" alt=\"\" width=\"161\" height=\"161\" srcset=\"https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-600x600.png 600w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-150x150.png 150w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-1024x1024.png 1024w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-300x300.png 300w, https:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size.png 1200w\" sizes=\"auto, (max-width: 161px) 100vw, 161px\" \/><\/a>Continuing our promise to open source parts of our libraries and applications where possible, we&#8217;ve just released <code>PrettySize<\/code>, a C# and .NET library for representing file sizes in a human-readable (pretty) format. <code>PrettySize<\/code>\u00a0is available for free (MIT-licensed) <a href=\"https:\/\/github.com\/neosmart\/PrettySize.net\" rel=\"nofollow\">on GitHub<\/a> and <a href=\"https:\/\/www.nuget.org\/packages\/NeoSmart.PrettySize\/\" rel=\"follow\">via NuGet<\/a>\u00a0for those that are interested, and forks, contributions, and pull-requests are actively encouraged.<sup id=\"rf1-4058\"><a href=\"#fn1-4058\" title=\"If anyone wants to try their hand at implementing IFormattable, consider this an open invitation. It&rsquo;s not a functionality we ever needed, but some might find it useful.\" rel=\"footnote\">1<\/a><\/sup><\/p>\n<p>One of the best benefits of open-sourcing code is that it requires you to take a critical eye to what your code does and how it&#8217;s structured. Haphazard code interspersed throughout a dozen different files is cleaned up and re-organized in a way that can only bring benefits all around, from performance to ease-of-use, security, and future maintenance.<\/p>\n<p><!--more--><\/p>\n<p>In this example, <code>PrettySize<\/code>\u00a0went from supporting just a single notation format (<code>2.34 KiB<\/code>, for example), to supporting output using both base 10 (kilobyte, megabyte, KB, MB) and base 2 (kibibyte, mebibyte, KiB, MiB) units, with support for both abbreviated and unabridged units in the output.<\/p>\n<p>Additionally, open-sourcing <code>PrettySize<\/code>\u00a0also brought some performance improvements to bear (although any honest appraisal of the situation would start and end with pointing out that any sort of human-readable formatting is almost always going to be part of a much slower path in the code, namely printing to screen or similar, to an extent that actually forming the human-readable strings in question is going to be of negligible overhead), as the code went from a sequence of <code>if (...) else ...<\/code>\u00a0statements like this:<\/p>\n<pre><code class=\"language-csharp\">if (size &lt; 1 * (1L &lt;&lt; 10))\r\n{\r\n    return size + \" bytes\";\r\n}\r\nelse if (size &lt; 10 * (1L &lt;&lt; 10))\r\n{\r\n    return (size \/ (1.0 * (1L &lt;&lt; 10))).ToString(\"N2\") + \" KiB\";\r\n}\r\nelse if (size &lt; 100 * (1L &lt;&lt; 10))\r\n{\r\n    return (size \/ (1.0 * (1L &lt;&lt; 10))).ToString(\"N1\") + \" KiB\";\r\n}\r\n...\r\n<\/code><\/pre>\n<p>where conversions of larger file sizes would have to go through each successive test until the matching clause was found, to a binary search performed against a sorted array of match ranges.<\/p>\n<p>While the .NET Framework has included a binary tree-based <code>SortedDictionary<\/code>\u00a0since .NET 2.0, it unfortunately does not support &#8220;fuzzy&#8221; lookups (\u00e0 la C++&#8217;s <code>std::map<\/code>) where the nearest match can be returned, and so manipulations would be required to incoming sizes before being able to match them against a pre-existing lookup table. On the other hand, <code>Array.BinarySearch<\/code>\u00a0will return the (binary, two&#8217;s complement) of the closest (higher) match if no exact match was found, letting us create a sorted list of formatting rules for each range, and then find the nearest match to service incoming requests.<\/p>\n<p>In addition to converting numeric file sizes to formatted strings for human-readable representation, <code>PrettySize<\/code>\u00a0also includes constants that can be used to make expressing your own size-related calculations easier, with both base 2 and base 10 units (and their abbreviations) exposed.<\/p>\n<p>Some random facts learned in the process:<\/p>\n<ul>\n<li><code>Exabyte<\/code>\u00a0is the only base 10 unit that isn&#8217;t 8 characters long, throwing a wrench in our code formatting for no good reason;<\/li>\n<li>The corresponding base 2 unit, <code>exbibyte<\/code>, is a bit of an oddly-named unit; although perhaps understandably so since the remainder of the base 2 units all have <code>e<\/code>\u00a0as the second letter, and <code>eebibyte<\/code>\u00a0is a bit.. difficult to pronounce.<\/li>\n<\/ul>\n<p>Anyway, that&#8217;s all for now. Go ahead and grab <code>PrettySize<\/code>\u00a0<a href=\"https:\/\/www.nuget.org\/packages\/NeoSmart.PrettySize\" rel=\"follow\">from NuGet<\/a> or <a href=\"https:\/\/github.com\/neosmart\/PrettySize.net\" rel=\"nofollow\">off of GitHub<\/a>\u00a0and make life easier on yourself and your end users&#8217; eyes!<\/p>\n<p class=\"save\">Download: <a href=\"https:\/\/www.nuget.org\/packages\/NeoSmart.PrettySize\" rel=\"follow\">PrettySize 2.1.0<\/a><\/p>\n<hr class=\"footnotes\"><ol class=\"footnotes\"><li id=\"fn1-4058\"><p>If anyone wants to try their hand at implementing <code>IFormattable<\/code>, consider this an open invitation. It&#8217;s not a functionality we ever needed, but some might find it useful.&nbsp;<a href=\"#rf1-4058\" class=\"backlink\" title=\"Jump back to footnote 1 in the text.\">&#8617;<\/a><\/p><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>Continuing our promise to open source parts of our libraries and applications where possible, we&#8217;ve just released PrettySize, a C# and .NET library for representing file sizes in a human-readable (pretty) format. PrettySize\u00a0is available for free (MIT-licensed) on GitHub and &hellip; <a href=\"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[91,212,963,52,964],"class_list":["post-4058","post","type-post","status-publish","format-standard","hentry","category-software","tag-net","tag-development","tag-nuget","tag-open-source","tag-prettysize"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Continuing our promise to open source parts of our libraries and applications where possible, we&#039;ve just released PrettySize, a C# and .NET library for representing file sizes in a human-readable (pretty) format. PrettySize is available for free (MIT-licensed) on GitHub and via NuGet for those that are interested, and forks, contributions, and pull-requests are actively encouraged. ((If\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"NeoSmart Technologies\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#article\",\"name\":\"PrettySize: a .NET library for printing human-readable file sizes | The NeoSmart Files\",\"headline\":\"PrettySize: a .NET library for printing human-readable file sizes\",\"author\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/neosmart.net\\\/blog\\\/wp-content\\\/uploads\\\/mannequin-size-600x600.png\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#articleImage\"},\"datePublished\":\"2017-06-21T16:06:06-05:00\",\"dateModified\":\"2018-01-13T14:54:23-06:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#webpage\"},\"articleSection\":\"Software, .net, development, nuget, open source, prettysize\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"position\":2,\"name\":\"Software\",\"item\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#listItem\",\"name\":\"PrettySize: a .NET library for printing human-readable file sizes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#listItem\",\"position\":3,\"name\":\"PrettySize: a .NET library for printing human-readable file sizes\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/category\\\/software\\\/#listItem\",\"name\":\"Software\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\",\"name\":\"The NeoSmart Files\",\"description\":\"Recovery software and more\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/\",\"name\":\"NeoSmart Technologies\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f542321efe8fccee6fb0b3322c2f647e2ab44a861d6b18ff16a79d032f8574cd?s=96&d=mm&r=pg\",\"width\":96,\"height\":96,\"caption\":\"NeoSmart Technologies\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#webpage\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/\",\"name\":\"PrettySize: a .NET library for printing human-readable file sizes | The NeoSmart Files\",\"description\":\"Continuing our promise to open source parts of our libraries and applications where possible, we've just released PrettySize, a C# and .NET library for representing file sizes in a human-readable (pretty) format. PrettySize is available for free (MIT-licensed) on GitHub and via NuGet for those that are interested, and forks, contributions, and pull-requests are actively encouraged. ((If\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/prettysize-a-net-library-for-printing-human-readable-file-sizes\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/author\\\/neosmart\\\/#author\"},\"datePublished\":\"2017-06-21T16:06:06-05:00\",\"dateModified\":\"2018-01-13T14:54:23-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/\",\"name\":\"The NeoSmart Files\",\"description\":\"Recovery software and more\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/neosmart.net\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PrettySize: a .NET library for printing human-readable file sizes | The NeoSmart Files","description":"Continuing our promise to open source parts of our libraries and applications where possible, we've just released PrettySize, a C# and .NET library for representing file sizes in a human-readable (pretty) format. PrettySize is available for free (MIT-licensed) on GitHub and via NuGet for those that are interested, and forks, contributions, and pull-requests are actively encouraged. ((If","canonical_url":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#article","name":"PrettySize: a .NET library for printing human-readable file sizes | The NeoSmart Files","headline":"PrettySize: a .NET library for printing human-readable file sizes","author":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"publisher":{"@id":"https:\/\/neosmart.net\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/neosmart.net\/blog\/wp-content\/uploads\/mannequin-size-600x600.png","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#articleImage"},"datePublished":"2017-06-21T16:06:06-05:00","dateModified":"2018-01-13T14:54:23-06:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#webpage"},"isPartOf":{"@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#webpage"},"articleSection":"Software, .net, development, nuget, open source, prettysize"},{"@type":"BreadcrumbList","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/neosmart.net\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","position":2,"name":"Software","item":"https:\/\/neosmart.net\/blog\/category\/software\/","nextItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#listItem","name":"PrettySize: a .NET library for printing human-readable file sizes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#listItem","position":3,"name":"PrettySize: a .NET library for printing human-readable file sizes","previousItem":{"@type":"ListItem","@id":"https:\/\/neosmart.net\/blog\/category\/software\/#listItem","name":"Software"}}]},{"@type":"Organization","@id":"https:\/\/neosmart.net\/blog\/#organization","name":"The NeoSmart Files","description":"Recovery software and more","url":"https:\/\/neosmart.net\/blog\/"},{"@type":"Person","@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author","url":"https:\/\/neosmart.net\/blog\/author\/neosmart\/","name":"NeoSmart Technologies","image":{"@type":"ImageObject","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f542321efe8fccee6fb0b3322c2f647e2ab44a861d6b18ff16a79d032f8574cd?s=96&d=mm&r=pg","width":96,"height":96,"caption":"NeoSmart Technologies"}},{"@type":"WebPage","@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#webpage","url":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/","name":"PrettySize: a .NET library for printing human-readable file sizes | The NeoSmart Files","description":"Continuing our promise to open source parts of our libraries and applications where possible, we've just released PrettySize, a C# and .NET library for representing file sizes in a human-readable (pretty) format. PrettySize is available for free (MIT-licensed) on GitHub and via NuGet for those that are interested, and forks, contributions, and pull-requests are actively encouraged. ((If","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/neosmart.net\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/#breadcrumblist"},"author":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"creator":{"@id":"https:\/\/neosmart.net\/blog\/author\/neosmart\/#author"},"datePublished":"2017-06-21T16:06:06-05:00","dateModified":"2018-01-13T14:54:23-06:00"},{"@type":"WebSite","@id":"https:\/\/neosmart.net\/blog\/#website","url":"https:\/\/neosmart.net\/blog\/","name":"The NeoSmart Files","description":"Recovery software and more","inLanguage":"en-US","publisher":{"@id":"https:\/\/neosmart.net\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"4058","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-23 20:03:58","updated":"2026-01-10 22:16:39","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/neosmart.net\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/neosmart.net\/blog\/category\/software\/\" title=\"Software\">Software<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPrettySize: a .NET library for printing human-readable file sizes\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/neosmart.net\/blog\/"},{"label":"Software","link":"https:\/\/neosmart.net\/blog\/category\/software\/"},{"label":"PrettySize: a .NET library for printing human-readable file sizes","link":"https:\/\/neosmart.net\/blog\/prettysize-a-net-library-for-printing-human-readable-file-sizes\/"}],"jetpack_shortlink":"https:\/\/wp.me\/p4xDa-13s","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/4058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/comments?post=4058"}],"version-history":[{"count":10,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/4058\/revisions"}],"predecessor-version":[{"id":4375,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/4058\/revisions\/4375"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=4058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=4058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=4058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}