mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 10:25:55 -07:00
Add Image.Length()
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
75a5d927d3
commit
a792146837
2 changed files with 17 additions and 1 deletions
7
image.go
7
image.go
|
|
@ -217,7 +217,12 @@ func (i *Image) Size() (ImageSize, error) {
|
|||
return Size(i.buffer)
|
||||
}
|
||||
|
||||
// Image returns the current resultant image image buffer.
|
||||
// Image returns the current resultant image buffer.
|
||||
func (i *Image) Image() []byte {
|
||||
return i.buffer
|
||||
}
|
||||
|
||||
// Length returns the size in bytes of the image buffer.
|
||||
func (i *Image) Length() int {
|
||||
return len(i.buffer)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue