github.com/signintech/pdft@v0.5.0/minigopdf/fontmaker/core/table_directory_entry.go (about)

     1  package core
     2  
     3  type TableDirectoryEntry struct {
     4  	CheckSum uint
     5  	Offset   uint
     6  	Length   uint
     7  }
     8  
     9  func (t TableDirectoryEntry) PaddedLength() int {
    10  	l := int(t.Length)
    11  	return (l + 3) & ^3
    12  }