directio

package
v12.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package directio provides methods for reading/writing files with direct io

Index

Constants

View Source
const (
	BLOCK_SIZE = 4096 // Minimal block size
	ALIGN_SIZE = 4096 // Align size
)

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(file string) ([]byte, error)

ReadFile read file with Direct IO without buffering data in page cache

func WriteFile

func WriteFile(file string, data []byte, perms os.FileMode) error

WriteFile write file with Direct IO without buffering data in page cache

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL