Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Value Primitives : tint.firstn-bytes

Syntax

#(tint.firstn-bytes,%s,%n)
#(tint.firstn-bytes,%s,%n,%retain)

%s is a value whose first %n bytes will be returned. %n must be a number. If %retain is specified, then the code or data attribute in %s will be carried into the result. Otherwise, the result is all data.

Examples

#(tint.firstn-bytes,abcdef,3)
abc
#(tint.firstn-bytes,abcdef,9)
abcdef
#(tint.firstn-bytes,abcdef,3,y)
abc