In this example, I try to allocate a binary buffer of size 10 and write a repeated value into it. A smaller length value works, but not a value of length the same size as the binary buffer.
Code:
C:\tmp>ver
TCC 23.00.17 x64 Windows 10 [Version 10.0.17134.112]
C:\tmp>set b=%@balloc[10]
C:\tmp>echo %@bpokestr[%b,0,a,%@repeat[x,10]]
TCC: (Sys) The parameter is incorrect.
"%@bpokestr[000001DCECC12080,0,a,xxxxxxxxxx]"
C:\tmp>set value=%@repeat[x,10]
C:\tmp>echo %@bpokestr[%b,0,a,%value]
TCC: (Sys) The parameter is incorrect.
"%@bpokestr[000001DCECC12080,0,a,xxxxxxxxxx]"
C:\tmp>echo %@len[%value]
10
C:\tmp>echo %@bpokestr[%b,0,a,12345]
0
C:\tmp>echo %@bpokestr[%b,0,a,1234567890]
TCC: (Sys) The parameter is incorrect.
"%@bpokestr[000001DCECC12080,0,a,1234567890]"