{"id":2840,"date":"2025-11-12T11:14:56","date_gmt":"2025-11-12T14:14:56","guid":{"rendered":"https:\/\/pedrobertoleti.com.br\/?p=2840"},"modified":"2025-11-12T11:15:04","modified_gmt":"2025-11-12T14:15:04","slug":"bit-fields-em-c","status":"publish","type":"post","link":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/","title":{"rendered":"Bit Fields em C"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introdu\u00e7\u00e3o<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">No universo dos sistemas embarcados, onde cada byte de mem\u00f3ria conta, a otimiza\u00e7\u00e3o de recursos \u00e9 uma arte essencial. Para isso, os bit fields (em linguagem C) s\u00e3o fortes aliados. Voc\u00ea j\u00e1 os conhece?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/pedrobertoleti.com.br\/index.php\/mentoria\/\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image-1024x1024.png\" alt=\"\" class=\"wp-image-2842\" style=\"width:404px;height:auto\" srcset=\"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image-1024x1024.png 1024w, https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image-300x300.png 300w, https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image-150x150.png 150w, https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image-768x768.png 768w, https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/image.png 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">O que s\u00e3o Bit Fields?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Bit fields s\u00e3o uma funcionalidade da linguagem C que permite declarar membros de estruturas com tamanhos espec\u00edficos em bits, ao inv\u00e9s dos tipos padr\u00e3o. Esta t\u00e9cnica \u00e9 particularmente \u00fatil quando trabalha-se com dados que naturalmente ocupam poucos bits, como flags booleanas, estados de m\u00e1quina ou valores de configura\u00e7\u00e3o.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vantagens do uso de Bit Fields<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Abaixo est\u00e3o as principais vantagens em utilizar Bit fields em C:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Economia de mem\u00f3ria: <\/strong>considere um sistema que precisa armazenar m\u00faltiplas flags de configura\u00e7\u00e3o. Sem bit fields, voc\u00ea poderia usar vari\u00e1veis <code>int<\/code> de 32 bits (ou um char de 8 bits) para cada flag, desperdi\u00e7ando muitos bits para cada flag criada. Com bit fields, voc\u00ea pode agrupar m\u00faltiplas flags em uma \u00fanica vari\u00e1vel (at\u00e9 8 em um char e at\u00e9 32 em um int), economizando muita mem\u00f3ria RAM.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Melhoria no Cache Performance: <\/strong>ao reduzir o tamanho das estruturas de dados, voc\u00ea aumenta a probabilidade de que mais dados importantes caibam no cache do processador, resultando em acessos mais r\u00e1pidos \u00e0 mem\u00f3ria (ou seja, menos misses).<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Organiza\u00e7\u00e3o sem\u00e2ntica:<\/strong> Bit fields permitem que voc\u00ea modele dados de forma mais pr\u00f3xima \u00e0 sua representa\u00e7\u00e3o real no hardware, tornando o c\u00f3digo mais leg\u00edvel e mantendo a sem\u00e2ntica dos dados.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exemplo pr\u00e1tico<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Abaixo segue um exemplo pr\u00e1tico de uso de Bit Fields em C em uma estrutura:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>struct configuracao {\n    unsigned int habilitado : 1;\n    unsigned int modo : 2;\n    unsigned int velocidade : 3;\n    unsigned int reservado : 2;\n};\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Neste exemplo, foi criada uma estrutura que ocupa apenas 8 bits (1 byte) ao inv\u00e9s de 16 bytes que seriam necess\u00e1rios usando tipos <code>int<\/code> ou char separados.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Considera\u00e7\u00f5es de Performance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Abaixo est\u00e3o algumas considera\u00e7\u00f5es importantes sobre performance quando \u00e9 usado Bit Fields em C:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Acesso a Bit Fields<\/strong>: \u00e9 importante notar que o acesso a bit fields pode ser mais lento em compara\u00e7\u00e3o ao acesso \u00e0s vari\u00e1veis comuns, pois o compilador precisa gerar instru\u00e7\u00f5es (bitmasks e opera\u00e7\u00f5es AND e OR, por exemplo) para extrair e manipular os bits especificados. No entanto, em sistemas embarcados onde a economia de mem\u00f3ria RAM \u00e9 mais priorit\u00e1rio que o tempo de manipula\u00e7\u00e3o de dados, este trade-off geralmente \u00e9 interessante.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Portabilidade:<\/strong> ordem dos bits em bit fields depende da implementa\u00e7\u00e3o do compilador e, em alguns casos, da arquitetura (devido ao endianess). Portanto, se for desejado que o c\u00f3digo seja port\u00e1vel entre diferentes plataformas, deve-se evitar depender da ordem exata dos bits ou definir estruturas espec\u00edficas para cada arquitetura e\/ou compilador.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Mentoria em sistemas embarcados<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Se voc\u00ea est\u00e1 interessado em aprofundar seus conhecimentos em desenvolvimento de software embarcado e deseja dominar tanto C quanto outras linguagens e ferramentas essenciais para o setor, considere participar da minha Mentoria em sistemas embarcados, conectividade e IoT.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Na minha mentoria, o foco \u00e9 ajudar voc\u00ea a construir da melhor forma a sua solu\u00e7\u00e3o: voc\u00ea apresenta seus desafios e eu ofere\u00e7o orienta\u00e7\u00e3o clara e objetiva sobre arquitetura, c\u00f3digo, protocolos e sele\u00e7\u00e3o de hardware. A mentoria totalmente personalizada, com foco na solu\u00e7\u00e3o t\u00e9cnica mais eficiente para suas necessidades.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Para mais informa\u00e7\u00f5es, acesse:&nbsp;<a href=\"https:\/\/pedrobertoleti.com.br\/index.php\/mentoria\/\">https:\/\/pedrobertoleti.com.br\/index.php\/mentoria\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclus\u00e3o<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Bit fields em C representam uma ferramenta poderosa no arsenal do desenvolvedor de sistemas embarcados. Quando usados adequadamente, podem resultar em economias significativas de mem\u00f3ria, melhor organiza\u00e7\u00e3o do c\u00f3digo e representa\u00e7\u00e3o mais fiel dos dados do hardware.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lembre-se: a otimiza\u00e7\u00e3o prematura pode ser contraproducente. Use bit fields quando a economia de mem\u00f3ria for realmente necess\u00e1ria e quando o trade-off entre mem\u00f3ria e performance fizer sentido para seu projeto espec\u00edfico.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Em sistemas onde cada byte conta, dominar t\u00e9cnicas como bit fields pode fazer a diferen\u00e7a entre um projeto que cabe na mem\u00f3ria dispon\u00edvel e um que precisa de hardware mais caro ou complexo. Comece aplicando estas t\u00e9cnicas em seus pr\u00f3ximos projetos e observe a diferen\u00e7a que uma abordagem consciente da mem\u00f3ria pode fazer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introdu\u00e7\u00e3o No universo dos sistemas embarcados, onde cada byte de mem\u00f3ria conta, a otimiza\u00e7\u00e3o de recursos \u00e9 uma arte essencial. Para isso, os bit fields (em linguagem C) s\u00e3o fortes aliados. Voc\u00ea j\u00e1 os conhece? O que s\u00e3o Bit Fields? Bit fields s\u00e3o uma funcionalidade da linguagem C que permite declarar membros de estruturas com&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2841,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,11,13,5],"tags":[],"class_list":["post-2840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-nivel-intermediario","category-publicacoes","category-artigos-nacionais"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bit Fields em C -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bit Fields em C -\" \/>\n<meta property=\"og:description\" content=\"Introdu\u00e7\u00e3o No universo dos sistemas embarcados, onde cada byte de mem\u00f3ria conta, a otimiza\u00e7\u00e3o de recursos \u00e9 uma arte essencial. Para isso, os bit fields (em linguagem C) s\u00e3o fortes aliados. Voc\u00ea j\u00e1 os conhece? O que s\u00e3o Bit Fields? Bit fields s\u00e3o uma funcionalidade da linguagem C que permite declarar membros de estruturas com...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pbertoleti\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-12T14:14:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-12T14:15:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pedro Bertoleti\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pedro_bertoleti\" \/>\n<meta name=\"twitter:site\" content=\"@pedro_bertoleti\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pedro Bertoleti\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/\"},\"author\":{\"name\":\"Pedro Bertoleti\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/#\\\/schema\\\/person\\\/fe1c150103c09ca0a2b9bb200bef33de\"},\"headline\":\"Bit Fields em C\",\"datePublished\":\"2025-11-12T14:14:56+00:00\",\"dateModified\":\"2025-11-12T14:15:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/\"},\"wordCount\":708,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/bitfields.jpg\",\"articleSection\":[\"Blog\",\"N\u00edvel intermedi\u00e1rio\",\"Publica\u00e7\u00f5es\",\"publica\u00e7\u00f5es nacionais\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/\",\"url\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/\",\"name\":\"Bit Fields em C -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/bitfields.jpg\",\"datePublished\":\"2025-11-12T14:14:56+00:00\",\"dateModified\":\"2025-11-12T14:15:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/#\\\/schema\\\/person\\\/fe1c150103c09ca0a2b9bb200bef33de\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/bitfields.jpg\",\"contentUrl\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/bitfields.jpg\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/2025\\\/11\\\/12\\\/bit-fields-em-c\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bit Fields em C\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/#website\",\"url\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pedrobertoleti.com.br\\\/#\\\/schema\\\/person\\\/fe1c150103c09ca0a2b9bb200bef33de\",\"name\":\"Pedro Bertoleti\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g\",\"caption\":\"Pedro Bertoleti\"},\"description\":\"Informa\u00e7\u00f5es completas em: http:\\\/\\\/pedrobertoleti.com.br\\\/index.php\\\/sobre\\\/\",\"sameAs\":[\"http:\\\/\\\/www.pedrobertoleti.com.br\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bit Fields em C -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/","og_locale":"pt_BR","og_type":"article","og_title":"Bit Fields em C -","og_description":"Introdu\u00e7\u00e3o No universo dos sistemas embarcados, onde cada byte de mem\u00f3ria conta, a otimiza\u00e7\u00e3o de recursos \u00e9 uma arte essencial. Para isso, os bit fields (em linguagem C) s\u00e3o fortes aliados. Voc\u00ea j\u00e1 os conhece? O que s\u00e3o Bit Fields? Bit fields s\u00e3o uma funcionalidade da linguagem C que permite declarar membros de estruturas com...","og_url":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/","article_publisher":"https:\/\/www.facebook.com\/pbertoleti","article_published_time":"2025-11-12T14:14:56+00:00","article_modified_time":"2025-11-12T14:15:04+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","type":"image\/jpeg"}],"author":"Pedro Bertoleti","twitter_card":"summary_large_image","twitter_creator":"@pedro_bertoleti","twitter_site":"@pedro_bertoleti","twitter_misc":{"Escrito por":"Pedro Bertoleti","Est. tempo de leitura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#article","isPartOf":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/"},"author":{"name":"Pedro Bertoleti","@id":"https:\/\/pedrobertoleti.com.br\/#\/schema\/person\/fe1c150103c09ca0a2b9bb200bef33de"},"headline":"Bit Fields em C","datePublished":"2025-11-12T14:14:56+00:00","dateModified":"2025-11-12T14:15:04+00:00","mainEntityOfPage":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/"},"wordCount":708,"commentCount":0,"image":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#primaryimage"},"thumbnailUrl":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","articleSection":["Blog","N\u00edvel intermedi\u00e1rio","Publica\u00e7\u00f5es","publica\u00e7\u00f5es nacionais"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/","url":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/","name":"Bit Fields em C -","isPartOf":{"@id":"https:\/\/pedrobertoleti.com.br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#primaryimage"},"image":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#primaryimage"},"thumbnailUrl":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","datePublished":"2025-11-12T14:14:56+00:00","dateModified":"2025-11-12T14:15:04+00:00","author":{"@id":"https:\/\/pedrobertoleti.com.br\/#\/schema\/person\/fe1c150103c09ca0a2b9bb200bef33de"},"breadcrumb":{"@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#primaryimage","url":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","contentUrl":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/pedrobertoleti.com.br\/index.php\/2025\/11\/12\/bit-fields-em-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/pedrobertoleti.com.br\/"},{"@type":"ListItem","position":2,"name":"Bit Fields em C"}]},{"@type":"WebSite","@id":"https:\/\/pedrobertoleti.com.br\/#website","url":"https:\/\/pedrobertoleti.com.br\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pedrobertoleti.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/pedrobertoleti.com.br\/#\/schema\/person\/fe1c150103c09ca0a2b9bb200bef33de","name":"Pedro Bertoleti","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/76ea2e908fec70b0d55b4eefd5ab24788f573fbe00bcb7b7d6e37da8f1e18dd3?s=96&d=mm&r=g","caption":"Pedro Bertoleti"},"description":"Informa\u00e7\u00f5es completas em: http:\/\/pedrobertoleti.com.br\/index.php\/sobre\/","sameAs":["http:\/\/www.pedrobertoleti.com.br"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pedrobertoleti.com.br\/wp-content\/uploads\/2025\/11\/bitfields.jpg","_links":{"self":[{"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=2840"}],"version-history":[{"count":3,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2840\/revisions"}],"predecessor-version":[{"id":2845,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2840\/revisions\/2845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/media\/2841"}],"wp:attachment":[{"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=2840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=2840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pedrobertoleti.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=2840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}