{"id":13817129,"url":"https://github.com/ncw/directio","last_synced_at":"2025-05-15T09:07:30.925Z","repository":{"id":9217970,"uuid":"11031412","full_name":"ncw/directio","owner":"ncw","description":"This is library for the Go language to enable use of Direct IO under all OSes","archived":false,"fork":false,"pushed_at":"2023-09-20T11:48:55.000Z","size":9,"stargazers_count":323,"open_issues_count":4,"forks_count":36,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-14T15:01:14.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vinjn/opencv-2-cookbook-src","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-06-28T16:24:31.000Z","updated_at":"2025-03-28T13:50:14.000Z","dependencies_parsed_at":"2024-01-18T03:47:18.609Z","dependency_job_id":null,"html_url":"https://github.com/ncw/directio","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.19999999999999996","last_synced_commit":"743c0ba8bd9692ab9640be560d53d7ecbf0c4f10"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdirectio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdirectio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdirectio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncw%2Fdirectio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncw","download_url":"https://codeload.github.com/ncw/directio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310515,"owners_count":22049469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T06:00:34.618Z","updated_at":"2025-05-15T09:07:25.916Z","avatar_url":"https://github.com/ncw.png","language":"Go","funding_links":[],"categories":["Misc"],"sub_categories":[],"readme":"DirectIO\n========\n\nThis is library for the Go language to enable use of Direct IO under\nall supported OSes of Go (except openbsd and plan9).\n\nDirect IO does IO to and from disk without buffering data in the OS.\nIt is useful when you are reading or writing lots of data you don't\nwant to fill the OS cache up with.\n\nSee here for package docs\n\n  http://godoc.org/github.com/ncw/directio\n\nInstall\n-------\n\nDirectio is a Go library and installs in the usual way\n\n    go get github.com/ncw/directio\n\nUsage\n-----\n\nInstead of using os.OpenFile use directio.OpenFile\n\n\tin, err := directio.OpenFile(file, os.O_RDONLY, 0666)\n\nAnd when reading or writing blocks, make sure you do them in chunks of\ndirectio.BlockSize using memory allocated by directio.AlignedBlock\n\n\tblock := directio.AlignedBlock(directio.BlockSize)\n        _, err := io.ReadFull(in, block)\n\nLicense\n-------\n\nThis is free software under the terms of MIT the license (check the\nCOPYING file included in this package).\n\nContact and support\n-------------------\n\nThe project website is at:\n\n- https://github.com/ncw/directio\n\nThere you can file bug reports, ask for help or contribute patches.\n\nAuthors\n-------\n\n- Nick Craig-Wood \u003cnick@craig-wood.com\u003e\n\nContributors\n------------\n\n- Pavel Odintsov \u003cpavel.odintsov@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Fdirectio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncw%2Fdirectio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncw%2Fdirectio/lists"}