tag:blogger.com,1999:blog-1893218858608219953.post2523104254096015939..comments2007-07-08T22:46:08.548+10:00Comments on This is me: Erlang and the Very Large BinaryPhilip Robinsonhttp://www.blogger.com/profile/17605642659657207381chlorophil@gmail.comBlogger1125tag:blogger.com,1999:blog-1893218858608219953.post-47909217464866161132007-07-08T22:46:00.000+10:002007-07-08T22:46:00.000+10:00The limits on bit level pattern matching that I am...The limits on bit level pattern matching that I am aware of is that it does not accept binaries larger than 2^29 bytes (2^32 bits) and the size value can not be larger than 2^27, i.e. it must be a fixnum. If you process binaries that are close to these limits on a 32-bit machine I would suggest using split_binary/2 to take out entries. e.g. you can write bin_get/3 as:<BR/><BR/>bin_get(BytesToSkip, BytesToRead, Bin) -><BR/> {_,Rest} = split_binary(Bin, BytesToSkip),<BR/> {Answer,_} = split_binary(Rest, BytesToRead),<BR/> Answer.<BR/><BR/>PerPerhttp://www.blogger.com/profile/02964702676374494771noreply@blogger.com